Re: Passing URL parameters, how to hide

From: Date: Tue, 21 Sep 2004 16:46:57 +0000
Subject: Re: Passing URL parameters, how to hide
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36315@lists.php.net to get a copy of this message
--- M Saleh EG <m.saleh.eg@gmail.com> wrote: > Ur 2nd question.. Okay .. how would u use the hidden > inputs? with > hidden inputs.. I mean the form hidden elements > (<input type="hidden" > name="id" value="recordID" />) so instead of having > hyperlinks > pointing to the form page use a form with submit > btns that post the > hidden id to the page that shows the user forms. > That is by fetching > the recordID by post. > I still want to pass the id's through hidden. So the html in the first form looks like this: <input name="hiddenField" type="hidden" value="recordID"> <input name="hiddenField" type="hidden" value="user id"></td> Form is set to post. In the update / awaiting form. I have the form waiting to be pass the variables. Not working though , wondering if I'm making a mistake somewhere . Update page (where it grabs the parameters: $Blue__rsUpdate = '1'; if (isset($HTTP_SESSION_VARS['xx_id_xxxxx'])) { $Blue__rsUpdate = $HTTP_SESSION_VARS['xx_id_xxxx']; } $Red__rsUpdate = '-1'; if (isset($HTTP_GET_VARS['recordID'])) { $Red__rsUpdate = $HTTP_GET_VARS['recordID']; } Forget the xxxx's , they are only there to protect the innocent ;). Stuart

« previous php.db (#36315) next »