Hi
I have a page that deals with a couple of forms and so there a a few requests that call the same page and out put results accorrdingly.
When the page is called , i run the below script at top of email.php
Code:
if (!isset($_SESSION['callname'])) { /* so if session varibale not exist */ /* this seems to be always being true where as it should be false after i have set it */
session_start();
$_SESSION['callname'] = $_SERVER['HTTP_REFERER'];
}
My problem is $_SESSION['compNumber'] is set correctly the first time email.php however, as email.php is a form, when the submit button is hit, email.php is re requested and $_SESSION['compNumber'] is reset to be email.php and NOT the calling page i wanted to keep a record of.
could someone please help with this lol. So frustrating
steve
Last edited by numbenator : 03-27-2006 at 06:49 AM.
|