Transfer variable to next web-page
| From: | Olav Drageset | Date: | Sat, 17 Nov 2001 18:00:36 +0000 |
| Subject: | Transfer variable to next web-page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74990@lists.php.net to get a copy of this message | ||
I just started..
How do you transfer a variable from one web-page to another
I try to use a form like this:
<?
echo("<P>
<FORM method='POST' action='join2.php'>
text for button
<INPUT type='submit' value='Next step'>
<INPUT type='hidden' name='htmlVariableName'
value='$phpVariableName'>
</FORM>
");
?>
and catch it in join2.php by:
$phpVariableName=htmlVariableName;
echo"$phpVariableName";
This do not work.
Can anyone tel me what should be done
Neither books, php-manual nor HTML-specification does tel me.
Olav