Jump to content

Emulating a submit button with JS


ginerjm

Recommended Posts

Normally, I submit forms with a submit button and check the value of that button in my script to see how to handle it.  I'm learning how to use a type=button instead and having my js validation function do the submit.  Now I discover that my script is not getting the value of the button object (naturally) so my script doesn't know what to do.

 

How does one pass to the PHP script the button name from a JS function?  My form is usually submitted with a POST.

Link to comment
https://forums.phpfreaks.com/topic/258664-emulating-a-submit-button-with-js/
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.