I've got a form with 2 Hidden Fields and i want , when i hit the submit button to fill the fields with my script before sending it . My form looks like this :
<form method = "post" action = "Submit.php">
<input type="text" value="" >
...
<input type"hidden" value="" >
<input type"hidden" value="" >
<input type="submit" value="Sendme">
<script > //do something before send form </script>
The problem is that ive got a field at the end of my form and i need the value of it to fill the hidden fields with some calculation based on his value before the form is submitted.