Jump to content

Passing Form field with Javascript


Adamus

Recommended Posts

Hi to all

Im new to Ajax so :( i dont know !!!

 

 

i have this in form ( create with PHP )

 

<form action="" method="post">
<input type="hidden" name="next_question" value="4">
<input type="hidden" name="answers[1]" value="a">
<input type="hidden" name="answers[2]" value="a">
<input type="radio" name="answers[3]" id="a" value="a"><label for="a">Asia</label><br>
<input type="radio" name="answers[3]" id="b" value="b"><label for="b">England</label><br>
<input type="radio" name="answers[3]" id="c" value="c"><label for="c">Italy</label><br>

<input type="submit" value="Next ">

 

so i want to pass then answers[1] with javascript ...

 

Is that possible ???

 

This is a quiz for my site..

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/134958-passing-form-field-with-javascript/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.