SirChick Posted November 8, 2007 Share Posted November 8, 2007 If i use a if (isset ) on a submit button regarding a form on a process page... does that stop the users from going to the process page directly via the url and causing problems.. so like i can do if (isset($_POST['submit']){ do process }else{ header etc } would that stop the process being run if the user skipped the form or is it exploitable ? Quote Link to comment Share on other sites More sharing options...
craygo Posted November 8, 2007 Share Posted November 8, 2007 Yes. You can either use a header to force the user to another page or use die("<a href='xxx.php'>click here to go to main page</a>"); to stop the script from running and give them a link. Remember a header will only work if it is the first thing outputted to the browser. so if you have your page title and nav bars coming up you may need to use the link. Ray Quote Link to comment Share on other sites More sharing options...
SirChick Posted November 8, 2007 Author Share Posted November 8, 2007 yeh thats ok im pretty much expert with header and output already started ive had so many of those in my time hehe thanks for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.