IIS
Posted by:
ZOR
(---.server.ntli.net)
Date: July 09, 2006 09:09AM
Do I need MS IIS on my localhost installation of Wamp5? I am having problems losing session variables Senario is:
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>
I can find my session cookies in C:/Wamp/Tmp using explorer/notepad.
Many thanks
</body>
<a href="index.php">back</a><p>
</html>