108
rated 0 times
[
112]
[
4]
/ answers: 1 / hits: 142554
/ 9 Years ago, sat, june 6, 2015, 12:00:00
I'm new in PHP/jquery
I would like to ask how to send json data from a form field like (name, age, etc) with ajax in a json format. Sadly I can't found any relevant information about this it's even possible to do it dynamically? Google searches only gives back answers like build up the data manually. like: name: X Y
, age: 32
, and so on.
Is there anyway to do that?
Thanks for the help!
Edit:
<form action=test.php method=post>
Name: <input type=text name=name><br>
Age: <input type=text name=email><br>
FavColor: <input type=text name=favc><br>
<input type=submit>
</form>
More From » php