Ive left all of my javascript out because im pretty sure it is way off.. :pinch:
What javascript do I need to add so that when a user clicks the submit button, the javascript sends all the form values to the php script? I would prefer it if I didnt have to change the php script in any way..
Question
smash505
Hey,
Ive been having trouble all day...Ive started to update a site to use ajax and it really isnt as easy as I thought it would be.
The problem is, I have a comment form on the bottom of a page, which goes to a php script and inserts the comment into a mysql database.
This is how my form is coded:
And this is what my php script is like:
Ive left all of my javascript out because im pretty sure it is way off.. :pinch:
What javascript do I need to add so that when a user clicks the submit button, the javascript sends all the form values to the php script? I would prefer it if I didnt have to change the php script in any way..
Thanks in advance!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts