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
Change MSGraph Chart Type
reverse cloned
Auto Number in Query
event id 5774
Taskbar Toolbars question WinXP
Perlfile wont exeute.
What is my password for "Connect to localhost" prompt?
How to create certificate for Exchange 2007 and Outlook web access
Read parameters from URL
OWA Failed login