restrict access with a hidden input

gloriacerise

New Member
Ive been struggling with this for a day or two. Not just the coding but explaining the situation precisely. I have a static form on a page, "download-registration.php" when you submit the form (validated CS and SS) it then takes you to "download-software.php" where you can well, download the software. I do not want "download-software.php" to be accessible from anywhere but "download-registration.php" and ONLY after you submit the form. This is the problem I was having with a session based restriction, you could go to "download-registration.php" and alter the url to get to the download page. I think I need to create a variable (random 1, 65335)? insert that value into a hidden input on click and make sure it matches to a value on the "download-software.php" page?How do I go about this? does it need to be done this way or is there a better way? Any help is much appreciated!
 
Back
Top