The code below is giving me grief. If I redirect index.php back to itself in the form event, and of course put the variables into place - $Fname = $_POST['TFN']; then it returns with the value still in my input box. However if I send it to another form and back with process.php, my variable $Fname is empty.
I tried adding a line to prevent issue of Race being established, but it made no difference. I still think I have a configuration problem of php, unless there is a real issue as to why this fails. Appreciate any help. Thanks
index.php
<?
session_start;
echo $Fname;
?>
<html><body>
<form action="process.php" method="post">
<input type="Text" name="TFN" value="<?echo $Fname; ?>">
<input type="submit" />
</form>
</body></html>
FORM process.php
<?
session_start;
$Fname = $_POST['TFN'];
echo $Fname;
?>
<html><body>
</body>
<a href="index.php">back</a><p>
</html>
I tried adding a line to prevent issue of Race being established, but it made no difference. I still think I have a configuration problem of php, unless there is a real issue as to why this fails. Appreciate any help. Thanks
index.php
<?
session_start;
echo $Fname;
?>
<html><body>
<form action="process.php" method="post">
<input type="Text" name="TFN" value="<?echo $Fname; ?>">
<input type="submit" />
</form>
</body></html>
FORM process.php
<?
session_start;
$Fname = $_POST['TFN'];
echo $Fname;
?>
<html><body>
</body>
<a href="index.php">back</a><p>
</html>