mardi 22 septembre 2015

Storing checkbox values in PHP session and retrieving and displaying them on another page

I've got a form with the following structure on page1.html

<input type="checkbox" name="vehicle[]" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle[]" value="Car">I have a car

on step-2.php, I want to know which checkbox has been checked and then display its value on the page.

I will use this information to perform another function later on hence why I want to store in a session.

Should I use jQuery or PHP and how would I go about doing this? Thanks




Aucun commentaire:

Enregistrer un commentaire