Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-19-2005, 02:18 AM
  #1
smurfus
Novice (Level 1)
 
smurfus's Avatar
 
Join Date: Sep 2005
Posts: 3
iTrader: (0)
smurfus has disabled reputation
Question Auto-Execute Form & Redirect

Greetings...

First I want to say thanks to all those people who post thier knowledge here. I have answered many basic questions by searching these forums. Your efforts are not wasted.

Here is my problem.

I accept Paypal for payments. I advertise on many different sites and some do not allow scripts or other data processing routines to run. I would like to link to a page that contains the <form> code from paypal, executes it with the predefined and encrypted data, perhaps loads a webcounter for tracking traffic, and redirects to Paypal for processing. My hopes is that the user never sees anything but Paypal.

I found this snippet searching these forums:

<html>
<head>
<META HTTP-EQUIV="Refresh"
CONTENT="1; URL=http://www.wherever.com/index.htm">
<title>HTML Redirect</title>
</head>
</html>

Just not what I need, but really close.

Many thanks to anyone willing to lend some assitance.
smurfus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2005, 03:08 AM
  #2
GatorSr
Deity (Level 17)
 
GatorSr's Avatar
 
Join Date: Aug 2005
Location: Florida USA
Posts: 788
iTrader: (0)
GatorSr is an unknown quantity at this point
Welcome to the fourm

Lotsa help here once we understand precisely what you need. From what you provided so far, I'm not sure how the transaction occurs.

If you have a web site setup with a buy page for PayPal e-commerce, the ads you place on other sites could contain a link to your page without any script or data processing routine.

Otherwise, I'd like to know where this redirect page is going to be hosted to process their PayPal transaction.

Provide a few more details and I'll try to help unless someone gets here first.

Good luck
__________________
Jim Degerstrom, Custom Web Design and Graphic Artwork
Web Design | Website Advice Blog | Website Advice Podcast
Be kind to strangers. Here's one reason. Read Hebrews 13:2
GatorSr is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2005, 09:00 AM
  #3
smurfus
Novice (Level 1)
 
smurfus's Avatar
 
Join Date: Sep 2005
Posts: 3
iTrader: (0)
smurfus has disabled reputation
Here is the <form> code output by Paypal...

Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> 
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- ENCRYPTED INFORMATION HERE....  END PKCS7-----">
</form>
Instead of going stright to Paypal when they click the button I'd like to route them through a page of my own first...

Code:
<A HREF="http://www.mydomain.com/PaypalForm.htm" TARGET="New" NAME="New"><img SRC="https://www.paypal.com/en_US/i/btn/x-click-butcc.gif" ALT="Make payments with PayPal - it's fast, free and secure!!"></A>
Only... I don't know how to get PaypalForm.htm to make it invisibly execute the form (and/or other processes) as if the user had clicked it directly. That a little clearer I hope?
smurfus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2005, 01:57 PM
  #4
smurfus
Novice (Level 1)
 
smurfus's Avatar
 
Join Date: Sep 2005
Posts: 3
iTrader: (0)
smurfus has disabled reputation
Ok... I found this searching the web... I have tried using it in various ways with no positive results...

Can anyone see what I am getting at and point me in the right direction?

Code:
<head>
<script language="javascript">
<!--
document.myform.submit()
//-->
</script>
...other head section stuff (Title, Description,etc.)...
</head>
<body>
<form name="myform" action="pagename.html" method="get"></form>
...rest of the page...
smurfus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2005, 02:26 PM
  #5
_Aerospace_Eng_
The CSS Master (somewhat)
 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a galaxy far far away...
Posts: 11,154
iTrader: (0)
_Aerospace_Eng_ has disabled reputation
That isn't going to work because the form doesn't exist yet. Place it after the form and it should work.
__________________

76 invites left. PM me for a Gmail invite along with email addy.
Why we won't help you .::. Web Developer's Handbook .::. Why Tables for Layout is Stupid?
_Aerospace_Eng_ is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2005, 04:20 PM
  #6
RysChwith
Super Guru
 
Join Date: Jun 2004
Posts: 4,117
iTrader: (0)
RysChwith will become famous soon enough
Or change it to:
Code:
window.onload = document.myform.submit();
which will give you the same effect.

Rys
RysChwith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:25 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.