I have “index.php” which is a simple form (a checkbox that must be ticked to proceed) that, when submitted, loads my second PHP file “access.php”. The second file has a more complex form with some DB stuff and lots of validation.
To make things simpler, I’m trying to put everything in index.php so when you submit the checkbox form, it then loads the second form and code without the need for a second PHP file.
I’m sure this is possible, but my limited PHP skills prevent me from figuring it out.
Can anyone help? Thanks!