I have this form on my web page:
<form action="my_target_file.py">
<!-- some input textboxes here -->
<input type="submit" value="Go!" />
</form>
When the form is submitted, I can access those values (the ones in the textboxes and other controls) easily. But I want to add some data to the my_target_file.py URL. For example, using Javascript, I can check if there's a checkbox checked or not. If it's checked, then I want to call my_target_file.py?checked=1 when submiting the form, along with all those values which the user has entered at the textboxes.
My current solution is to have a hidden textbox which I fill using Javascript when the checkbox is checked, for example. Then I read the hidden textbox from my_target_file.py, but that's not too clean.
How can I achieve this?