I have a long form with a submit button that sends the values of all the fields into the address bar.
However, I want the submit button to ALSO add an extra value (&submitted=yes) when it is clicked.
How can I convert my button:
<input type="submit" name="submitted" value="submit">
to do this?
Easiest solution: add a hidden input field to your form.
<input type="hidden" name="submitted" value="yes">
well, you can use
button tag instead, just like this:
<button type="submit" name="submitted" value="yes">submit</button>
Also i see that you use language attribute on script, you better use type attribute, like this: