#1 (permalink)  
Old 08-03-2006, 07:59 PM
Allen's Avatar
Administrator
 
Join Date: Dec 2001
Location: Atlanta, Georgia, USA
Posts: 1,049
auto submit a form? possible?

ok - i have a form - that when submitted needs to do some processing but then I need to send that person to another form submission... is this possible?

meaning the following:
  • user comes to my form
  • user completes form
  • user submits form
  • form processes data and rather than showing a thank you msg, forwards to another form as if they submitted that 2nd form

the idea is that i want to have a pre-processing page for a paypal signup - so i want the person to be sent to paypal with the correct attributes after filling in my form - i know i can do this as a straight url but would rather do it as a form post so all the data is not shown in the url.

thank you
allen
Reply With Quote

  #2 (permalink)  
Old 08-04-2006, 03:14 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
You can do it with simple HTML/javascript:

Code:
<form action="http://paypal" method="post" id="paypalProcessor">
<input type="hidden" name="foo" value="bar" />
</form>
<script language="JavaScript" type="text/javascript">
<!--
document.getElementById('paypalProcessor').submit();
//-->
</script>
Of course this can also be done with PHP and so on.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending a form, not just the results by email kenwvs Programming and Scripting 1 06-29-2006 05:46 PM
Setting Values For Form Elements With Unconventional Names curtiss Programming and Scripting 2 06-04-2006 09:28 PM
Obtaining a Form Elements Index by Name curtiss Programming and Scripting 3 05-02-2006 11:25 AM
Form - Submit Button Help Plz... nik_b02 Programming and Scripting 2 04-19-2006 08:20 AM
passing information from 1 form to another amanxman Programming and Scripting 3 04-12-2006 04:59 PM


All times are GMT -5. The time now is 04:29 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter