mardi 5 février 2019

Store checkbox in PHP Session and echo it

I'm trying to store a form of checkboxes into a session variable so I can echo it out on a different page. I'm guessing you need to store it in an array somehow.

Form:

<form action="" method="post">
        <input name="crate[]" value="apple" type="checkbox">
        <input name="crate[]" value="banana" type="checkbox">
        <input name="crate[]" value="potato" type="checkbox">
        <input type="submit" name="Submit" value="submit">
</form>




Aucun commentaire:

Enregistrer un commentaire