Jump to content

Archived

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

jeboy

Submitting a form without clicking submit button.

Recommended Posts

I would like to ask if it is possible to submit a form by POST method using redirect?

Thanks

Share this post


Link to post
Share on other sites
You can do document.myform.submit() in javascript, for a form named "myform"

That can even be done when there is no submit button (keep in mind that there'll be no "Submit=submit" type variables sent if you submit this way)

Share this post


Link to post
Share on other sites
I think he wants the user to send a POST request without using a form. I don't know if you can do that

Share this post


Link to post
Share on other sites

×

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.