Discussion Locked

Including addtnl data on form submit

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an html file containing a form. This html file will also be receiving a parameter.

How can I send this parameter along with the form data to a cgi script (php). The "Submit" will send along the form data but I also need the parameter sent.If the answer is to use a "Hidden" field on the form, how would I set its value to the parameter?

9 replies

by geoffreyc

Using the hidden field as has been noted, you use the onSubmit event to fill the field, either via subroutine, or directly.

by cedric king

If you are using PHP, then you can write:

Or you can write in the script to execute the following line before a Submit is done:
document.ThisForm.HiddenFieldElement.Value = "<%=Parameter Value%>"

Hope I understand and answer your question.

by rw2000

I don't deal with cgi scripts, but I'm guessing that YourAction.asp would reference your cgi script instead of the asp file.
....

This discussion is closed to new replies.