Page 1

<input type="hidden" name="var2" value="test">

Page 2

echo $_REQUEST['var2'];

//or

echo $_POST['var2'];

//==========
//Sometime noticed some glitch with $_POST because sometime PHP think the
data go to $_GET...
//So, to prevent future headache, I use $_REQUEST['var2'] at all time...
//==========

Scott
"Comex" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
> Onno Kuipers:
> > Jay Blanchard wrote:
> >> [snip]
> >> $var=¨How are you¨;
> >> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
> >> [/snip]
> >>
> >> Pleace $var in a hidden form element.
> >
> > I tried... something like this
> >
> > <input type="hidden" name="var2"
> > value=¨<?php print $var2; ?>¨>
> >
> > but it doesn't work. Maybe you mean something totaly different, can
> > you show me what you mean.
>
> Should work, if not use sessions.

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

Reply via email to