I've created a form with "Terms of Use" agreement at my WordPress site. If user agree - it's redirecting to other page. But now I need to check on the other pages - if user submitted this form - it's OK, if not - user should be redirected to the page with "Terms of Use" again.
What PHP construction I can use?
I need something like "If entry of the formid=X exists for userid=Y, then do nothing. Else - redirect to the page Z."
Please help. Thank you.