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>

Options: ReplyQuote
Re: IIS
Posted by: CyberSpatium (67.170.181.---)
Date: July 09, 2006 09:24AM

you are using ASP style short tags. replace all:
<?

with:
<?php

Options: ReplyQuote
Re: IIS
Posted by: ZOR (---.server.ntli.net)
Date: July 09, 2006 09:43AM

My PHP.ini file has been set to Short_Tags_On so this should be okay?? I think. Thanks again

Options: ReplyQuote
Re: IIS
Posted by: ZOR (---.server.ntli.net)
Date: July 09, 2006 01:25PM

I have now cured all my problems which have wasted 3 weeks. I do not use Wamp5 anymore, I downloaded XAMPP and everything works perfectly. Maybe someone at Wamp could look into the problem, as I read many postings on session problems. It might just be a configuration problem? I came accross 2.3 copies of my php.ini file with Wamp5?? I don't know why'. Anyhow thanks for comming back.

Options: ReplyQuote


Sorry, only registered users may post in this forum.