Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Force Submit Form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Force Submit Form

 Post Reply Post Reply
Author
silvaduro View Drop Down
Newbie
Newbie
Avatar

Joined: 10 November 2002
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote silvaduro Quote  Post ReplyReply Direct Link To This Post Topic: Force Submit Form
    Posted: 01 August 2003 at 4:44am

Hey,

I have a form (with some hidden fields in it) that, if a condition is true, force submits to another page before the page has begun to load.

Like,

If condition = 1 then
'Force submit form
End If

Any ideas? It doesn't necessarily have to be ASP, Java Script oranything else would be fine, I suppose.

Thanks,

silva

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2003 at 8:33am

response.redirect yourpage.asp ?

Is that what you're looking for?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2003 at 3:29pm

How is your form setup, get or post?

Back to Top
silvaduro View Drop Down
Newbie
Newbie
Avatar

Joined: 10 November 2002
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote silvaduro Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2003 at 11:27pm

Response.Redirect doesn't POST the form. It just acts like you've clicked on a link, not a submit button.

I'm using Post, not Get.

Back to Top
Flamewave View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 June 2002
Location: United States
Status: Offline
Points: 376
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flamewave Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2003 at 2:10am

If condition = 1 then
    Response.Write "<script language=""JScript"" type=""text/javascript"">document.formname.submit();</script>"
End If

Should do the trick.

- Flamewave

They say the grass is greener on the other side, but if you really think about it, the grass is greener on both sides.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.