S
S
SimBioT192015-05-13 12:36:30
PHP
SimBioT19, 2015-05-13 12:36:30

How to build a link based on selected checkboxes?

There are many checkboxes, there is a "link button", how to build a link, or more precisely a GET request based on the selected checkbox? Let's say a checkmark next to date is a link, it will turn out URL? date = 1 and so on.
Is this done with js or PHP? Which way to look?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Ineshin, 2015-05-13
@IonDen

The form with checkboxes needs to be converted to a string. Browsers do this automatically. Wrap your checkboxes in a form.
If, however, you still need to do it manually, then the Serialize method will help you

D
Dmitry Shamonov, 2015-05-13
@DMShamonov

With js. Look towards jquery . Another link .

I
IllusionTurtle, 2015-05-13
@IllusionTurtle

https://jsfiddle.net/vu14Lcst/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question