Re: passing variables from one page to another

From: Date: Mon, 12 Nov 2001 00:28:54 +0000
Subject: Re: passing variables from one page to another
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14236@lists.php.net to get a copy of this message
On Sun, 11 Nov 2001 12:55:19 -0800 sean "sean" <sbean@frontiernet.net> wrote: > I'm writing a trouble ticket system > I have a login page (and sessions) which print links to various > parts of the > sytem on successful login. On another page (also controlled by the > session), > I have a form to check a serial number and print the user info if > the serial > is good. At that point, the user (a tech support person) has the > option to > create a new trouble ticket or edit an old one. What I am > wondering is this: > Is there a way to pass the serial (that was used for the search) > as part of > the update.php or new_trouble_ticket.php forms (like in a hidden > field or > something) ? I want to avoid having to enter the number twice > during the > same call, because the serial number is very long and it's already > associated with the client's contact info. If the tech entered it > wrong, it > would screw things up in a big way. Sean, You can use a "hidden" field in your form to pass a variable from page to page, or you can create a session variable that will stay alive as long as the browser session is valid. http://www.php.net/manual/en/ref.session.php -- Raquel ============================================================ Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared. --Buddha

« previous php.db (#14236) next »