Jump to content


Photo

Submitting a form without clicking submit button.


  • Please log in to reply
2 replies to this topic

#1 jeboy

jeboy
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts
  • LocationRizal, Philippines

Posted 20 October 2006 - 07:28 AM

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

Thanks

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 20 October 2006 - 07:54 AM

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)

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 20 October 2006 - 08:58 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users