Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Can I pass a value of a checkbox in HTML to the page with the form?

$
0
0

Replies: 0

Not sure if the title explains what I would like to do…
I have a page that lists various classes, with each class description followed by a link to Register.
All the links go to the same registration page with a form that has all the classes listed with check boxes.
What I would like to do is in the link, pass the value of the class they want to register for so that that class’ checkbox is selected on the form when they get to the registration page.
For instance, if they click on the Register link after the class for History 101, I would like the checkbox for History 101 to be checked by default when they get to the registration form. Of course, I would like to keep the functionality of a checkbox in case they want to register for additional classes on that same form.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>