[PHP] Passing values from one page to another

2003-08-25 Thread murugesan
Hello all,

[snip]


//Page0.php
a href=page1.php?empid=1Enter/a



//page1.php
script language=javascript
function submitform()
{
   //Check for empty values in text box
}
/script

form  onsubmit='return submitform()' method=POST action='page2.php'
input type=text name=uname 
input type=hidden name=empid value=?php echo $empid;?
/form
?php
echo $empid;
?




//page2.php
?php
echo $empid;
?

In page 1 I am able to get the value 1 of empid.
But in page 2 I am not  able to get it.
Any solutions

-murugesan

Re: [PHP] Passing values from one page to another

2003-08-25 Thread Chris Shiflett
--- murugesan [EMAIL PROTECTED] wrote:
 a href=page1.php?empid=1Enter/a
...
 input type=hidden name=empid value=?php echo $empid;?

http://www.php.net/register_globals

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

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