Jump to content

header("Location: booknow.php? error=$error"); what????


deansaddigh

Recommended Posts

it returns a value like if you went to page booknow.php?error=$error then it would display the error message for what error=.

 

Example:

 

viewprofile.php?memberid=2

This is one i use which the script then knows it has to find user id number 2

For clarity's sake, the portion of the URL that begins with a '?' is called a query string.  The information in the string is sent to a server side script for processing.  This information is grouped as name-value pairs.  The first bit is the name of the parameter being sent to the script, while the part after the '=' is the value of that parameter.  You can send multiple name-value pairs by separating them with the '&' symbol, like so:

 

http://www.example.com/formprocessor.php?name=Bubba&age=44

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.