Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Query string
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == If a [[Form (web)|form]] is embedded in an [[HTML]] page as follows: <syntaxhighlight lang="html"> <form action="/cgi-bin/test.cgi" method="get"> <input type="text" name="first" /> <input type="text" name="second" /> <input type="submit" /> </form> </syntaxhighlight> and the user inserts the strings "this is a field" and "was it clear (already)?" in the two [[Text box|text fields]] and presses the submit button, the program <code>test.cgi</code> (the program specified by the <code>action</code> [[HTML attribute|attribute]] of the <code>form</code> [[HTML element|element]] in the above example) will receive the following query string: <code>first=this+is+a+field&second=was+it+clear+%28already%29%3F</code>. If the form is processed on the [[web server|server]] by a [[Common Gateway Interface|CGI]] [[Scripting language|script]], the script may typically receive the query string as an [[environment variable]] named <code>QUERY_STRING</code>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)