I have multiple checkboxes in my form and i want to use those to generate the url.
An example :
<form action="checkbox.php" method="post">
<input type="checkbox" name="checkbox" value="a">
<input type="checkbox" name="checkbox" value="b">
<input type="checkbox" name="checkbox" value="c">
<input type="checkbox" name="checkbox" value="d">
<br>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
When the user presses the submit button he will have to be redirect to the generated url created as followed :
Depending on the choises of the user the url should be generated as above.
How can i pull this of?
Here’s a php example if you don’t want to use AJAX
Top of your checkbox.php: