I want thet wen you click submite to open the page the
the displayed page will be activ onli a few seconds and then withaut clicking and doing nothing the page should be remuved by it self and get back where was before......
help me
how to
Moderator: General Moderators
also, have a look at [php_man]header[/php_man].
You can also add a delay if you like. Do note, however, that according to PHP manual, $_SERVER["HTTP_REFERER"] depends on the browser and apparently not all browser handle it correctly.
Personally, I've not had any browser giving me problems with it.
Code: Select all
<?php
header("location: ".$_SERVER["HTTP_REFERER"]);
?>Personally, I've not had any browser giving me problems with it.
I would use a plain old meta refresh.
this must be within the <head> tags
Code: Select all
<?php
$back = $_SERVER['HTTP_REFERER'];
$seconds = 15; // time measured in seconds
?>
<meta http-equiv="refresh" content="<?php echo $seconds; ?>; url=<?php echo $back; ?>">
<?php
// this will send them back if nothing happens on the page
?>