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
Exchange 2000 running Extremely Slow
append file
Running Norton Ghost 8 using a USB Hard Drive
Call a PL/SQL Anonymous Block file from SQL PLUS
Reading / Parsing IP and Port from file
Mysql error log on linux machine
Keystroke shortcuts in Win95
MySQL datetime insert into SQL Server datetime using PHP
%clientname% environment variable not present at login script on windows server 2008 TS
Having 'No Records Found' display in listbox