View Single Post
  #7  
Old 07-12-2012, 10:05 PM
Eldritch Eldritch is offline
Member
 
Join Date: Apr 2012
Posts: 3
Gender: Unknown/Other
Credits: 1,831
Eldritch is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
Well add this at the beginning of the script:(below the 'START SCRIPT' section):

PHP Code:
if(!isset($_GET['submit'])) throw new Exception('Direct access to this file is forbidden, please return to adopt.php and submit your form.'); 
The S in submit should be capitalized.

This has pretty much the same problem, only now the user has to add &Submit= to it, like /doadopt.php?id=1&Submit=.
Reply With Quote