Good evening Stack members,
I have no experience with that im about to ask so it may be a totally stupid idea.
We have a few different pages that ask for different bits of information
On each form we have the post to the next page , then we have php code to collect the information from the previous page and fill in the next page – we have bits of code on the second page that rely on the first page to be filled in else they will just stay blank.
What we were wondering is .. is that any way for us to deny requests via the web if someone went to page2.php it redirected to page1.php or just said access denied but yet allowed access if our form posted information to page 2
I’m sorry if this is quite messy and i do agree if you rate me down but im just a beginner and trying to figure this out for myself , I understand a lot of you are quite knowledgeable and would be grateful for any information at all
Thanks
So basically to recap
Page 1 > User fils in information > pass > page2.php
User tries to enter page2.php into their browser url window >> denied >> redirect
on page 1 put a hidden value in the form,
on page 2