Warning: Page has Expired

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Warning: Page has Expired

Post 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 ;
}
?>
Joan Garnet
Forum Newbie
Posts: 19
Joined: Fri Jun 20, 2003 9:56 am
Location: Barcelona

Post by Joan Garnet »

Are you using sessions ??
I think it has something to do with security...
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post by valen53 »

thank 4 reply

i didn't use session in this system yet...
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post 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
Post Reply