Jump to content

[SOLVED] submit form


csckid

Recommended Posts

Does your form actually have the id='myform' attribute set?

 

As a quick way to test if you're actually ending up at the right place you could do a

alert( document.getElementById('myform') );

If it comes up with "undefined" then it can't find the form, your syntax itself seems to be correct, above post is just another way to reach the same node.

Link to comment
https://forums.phpfreaks.com/topic/153723-solved-submit-form/#findComment-807858
Share on other sites

Then it's not a javascript problem, did you do a "print_r( $_POST );" ? that way you'll know if theres at least something in it.

If there isn't anything at all in it we're going to need some more information like a link to the page or the form element including it's content as used on your page.

Link to comment
https://forums.phpfreaks.com/topic/153723-solved-submit-form/#findComment-808039
Share on other sites

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.