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 ? Link to comment https://forums.phpfreaks.com/topic/76569-solved-form-question-again/ 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 Link to comment https://forums.phpfreaks.com/topic/76569-solved-form-question-again/#findComment-387780 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 Link to comment https://forums.phpfreaks.com/topic/76569-solved-form-question-again/#findComment-387787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.