Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autosubmit hidden form

Status
Not open for further replies.

Dimitrie1

Programmer
Jan 5, 2007
138
CA
how can I change this code for it to automatically submit.

Code:
 System.Web.HttpContext.Current.Response.Write("<html><body><form method=""post"" action=""[URL unfurl="true"]http://159.18.103.228/unpservice/UNPPaymentService""><input[/URL] type=""hidden"" name=""paymentRequest"" value=""")
        System.Web.HttpContext.Current.Response.Write(Replace(xmlText, """", "&quot;"))
        System.Web.HttpContext.Current.Response.Write("""><input type=submit  value=PayNow></form>After clicking   </body></html>")
 
Not 100% sure why you are doing this, but if you want a form to automatically submit on load then add an onload event into the body tag...

<body onLoad="document.form1.submit()">

form1 = the name of your form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top