| redirect() | ใช้เปลี่ยนหน้า web page ไปยัง page ที่กำหนด |
|---|
function:redirect ( url, method, http_code )
return type:void
content:ใช้เปลี่ยนหน้า web page ไปยัง page ที่กำหนด
example:redirect ( "produce/data" );
comment:ตัวแปร url ใช้กำหนด path ที่ต้องการให้เปลี่ยน page ไป ตัวแปร method ใช้กำหนดวิธีการเปลี่ยนหน้า web page คือ refresh หรือ location ตัวแปร http_code ใช้กำหนด HTTP Response Code แต่ต้อง กำหนด method = location เท่านั้น