Microsoft
Software
Hardware
Network
Question : Help with Form Submit String and delimiters
im building a submit program in visual basic. im using MS inet controls 5.0. i need information concerning what the submit string looks like after a user clicks the "submit" button.(ie.../promail.pl?l
ang=englis
h&name=har
ry) especialy forms with combo boxes,list boxes,checkboxes, radio buttons. im having problems getting forms with these controls to submit also any info on boolean values would be very helpful thanks thanks
Answer : Help with Form Submit String and delimiters
HTML forms have several input tools:
textarea, combo-box, selection...
in general a submit string (using the GET method) will look like this:
http://hostname/path/cgi-s
cript?var1
=value1&va
r2=value2
.
..
hostname+path is the url where the cgi-script is located.
cgi-script is the name of your cgi-script.
the ? sympbol says that the following are variables with their corresponding values. the variables (var1, var2... in my example) are the names of the the input fields in a FORM (see
http://www.htmlhelp.org/re
ference/ht
ml40/forms
/form.html
about the syntax of the FORM tag and see:
http://www.htmlhelp.org/re
ference/ht
ml40/forms
/input.htm
l
for INPUT
http://www.htmlhelp.org/re
ference/ht
ml40/forms
/select.ht
ml
for SELECT
http://www.htmlhelp.org/re
ference/ht
ml40/forms
/textarea.
html
for TEXTAREA
http://www.htmlhelp.org/re
ference/ht
ml40/forms
/button.ht
ml
for BUTTON)
in short the data inserted intp a form elements (INPUT/SELECT...) is placed intp a variable as a string. That data is the value in the var=value pair.
Another thing to notice is that space characters in the GET string should be converted to '+'. When you input the string "Have a nice day" into an INPUT field named myString in an HTML form you get the following GET url:
http://hostname/path/cgi-s
cript?mySt
ring=Have+
a+nice+day
try playing with this. check out the form in the altavista search engine (
www.av.com
) - input a query and see how the location bar changes as the form is submitted.
ask more if you have more stuff unclear.
Random Solutions
Specified domain not exist on Local Win XP Pro Login
Show/Hide parts of a Word doc with password-protection
Select from two tables but get all rows, not just inner join
Migration of Windows 2003 server to new hardware with the same license
mail sent using asp and iis5.1 goes directly to badmail folder
ISAPI Rewrite Rule help needed
run CIPHER /X[:efsfile] [filename] programatically
Block DNS Lookups for certain domains
Can I block email going to a specific email address with exchange 2003
Cyclical Error prevents me from copying DVD film data