Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.