Jump to content

Redirect Inside A Script


iKettles

Recommended Posts

I'm currently working on a login script for my website. On the include login script I want a redirect on one of the parts. I've used the header( function but I get an error saying "Cannot modify header information - headers already sent by" and then it says my index file. Weird thing is there is no header('s in my index file. How can I redirect within this script?

Link to comment
https://forums.phpfreaks.com/topic/103995-redirect-inside-a-script/
Share on other sites

Thanks for the help. Another question, I'm using a PHP sign in form and if the result turns up false (the result being the password in the database) then it displays an error message saying this. The base scrip has used die() which AFAIK kills the script and displays the message after that. Would it be a security vulnerability not killing the script or could I simply get rid of die() and just have an include()?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.