วิธีการที่จะทำให้ script กลับไปหน้าที่แล้วหลังจากทำงานเสร็จคือใช้ $_SERVER['HTTP_REFERER'] ครับ

<?php

// Somethint here

// Redirect back to previous page
$previous = $_SERVER['HTTP_REFERER'];
header("location:$previous");
exit;
?>

Popularity: 1% [?]

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.