Re: Passing Variables

From: Date: Sun, 11 Jul 2004 17:45:54 +0000
Subject: Re: Passing Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190188@lists.php.net to get a copy of this message
To go back to a previous conversation, I would not put it on the action=. You are using METHOD=post? I wold use <input name=UserID value==\"$UserID\" type=hidden> or to really hide them use session variables so they are completely hidden. Or use a cookie (but that is not the most secure way). Harlequin wrote: > I'm just working on my syntax for passing a variable "UserID" from one page > to the next and it works a little like this so far: > > On my form I have: > "<form action='updated.php?UserID=\"$UserID\"... > > The URL posts: > http://...load.php?UserID="JDoe" > > And when I echo the "$UserID" on this page I get: > Code: > <?php echo "for example: ['$UserID']"; ?> > > Generates: > for example: ['\"JDoe\"'] > > Which part of my syntax is incorrect...? > > -- > ----------------------------- > Michael Mason > Arras People > www.arraspeople.co.uk > ----------------------------- -- John Taylor-Johnston ----------------------------------------------------------------------------- "If it's not open-source, it's Murphy's Law." ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064

« previous php.general (#190188) next »