Page 1 of 1

Warning: Page has Expired

Posted: Thu Nov 27, 2003 3:13 am
by valen53
i do a Date checking. If date format incorrect, alert then go back. But the page display " Warning: Page has Expired " .

how to get back the previous page? anyone can help me ?

i didn't use session in this page.

Code: Select all

<?php
    if(!checkdate($mm,$dd,$yy))
 {
     getDateAlert() ;
  }

function getDateAlert()
{
echo' 
   <script language="JavaScript1.2"> 
	alert("Please select the correct Date format ");
    history.go(-1) ;
   </script>
 ';
exit ;
}
?>

Posted: Thu Nov 27, 2003 8:24 pm
by Joan Garnet
Are you using sessions ??
I think it has something to do with security...

Posted: Thu Nov 27, 2003 10:20 pm
by valen53
thank 4 reply

i didn't use session in this system yet...

Posted: Fri Nov 28, 2003 12:08 am
by d3ad1ysp0rk
it's because u posted to the previous page

try either using get, or adding another page
in between ur form page, the next page, and the page u posted