QUERY_STRING
environment variable.
For an example of the GET method, consider the following form:
In PHP, the predefined $_GET
variable is used to collect input values such as
echo "$_GET[act]";
// Print “Submit.” echo "$_GET[email]";
// Print “userid@cs.und.edu.” echo "$_GET[password]";
// Print “CSci457.”
PHP
and MySQL
to the Yahoo, the URL is changed to the following string:
http://search.yahoo.com/search?p=PHP+MySQL&ei=UTF-8and the variable values are
$_GET[p]
= “PHP MySQL” and $_GET[ei]
= “UTF-8” if the Yahoo Search uses PHP.
Spaces and some special characters are not allowed in URLs.
The code ‘+’ is for the space ‘ ’ and the hexadecimal ASCII code ‘%40’ is for the symbol ‘@’ in URLs.
I bought some shoes from a drug dealer. I don’t know what he laced them with, but I’ve been tripping all day. |