Re: Passing URL parameters, how to hide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- M Saleh EG <m.saleh.eg@xxxxxxxxx> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux