Hi all, this is a re-post.
I think I'm missing somthing fundamental.
Please check out the simple scripts below and tell me why $name will not change values?
thanks
Nick
<?
// ses.php
session_start();
session_register(\"name\");
?>
<body>
<form method=\"post\" action =\"ses2.php\">
input name
<br>
<input type=\"text\" name=\"name\">
<br>
<br>
<input type=\"submit\">
</body>
<?
// ses2.php
session_start();
?>
<body>
<br>
<br>
<a href=\"ses3.php\">page 3</a>
</body>
<?
// ses3.php
session_start();
?>
<body>
<br>
<br>
and the name is <? print($name); ?>
<br>
<br>
<a href=\"ses.php\">start again</a>
</body>
I always get the first name I entered?
Hope someone can point out the error of my ways!
much appriciated
Nick