Copy link to clipboard
Copied
I've just got to grips with passing form textField inputs to session variables, and displaying the values on the next page. I am now trying to pass checkbox values but having some problems. I followed a tutorial that set the form to post to self with a bunch of PHP that I couldn't get working, it just reloaded the page. I've since read that I don't need to bother with posting the form to itself. Anyone know the best way to do this or is there a tutorial for beginners? Thanks guys
Copy link to clipboard
Copied
It depends on what exactly you're trying to do. If you performing an insert or iodate record to a database, the form will post back to the same page, perform thenfnstion, then redirect,mif all you want to dois make the values available to the next page, set your redirect page in the form action and it will pass the variable value pairs to that page which you can retrieve, if you're just going to use the values on that page, you don't need to place them into session variables. Nut if you do, just DES ore the session variable and assign the value from the checkbox from the previous page.