Click to See Complete Forum and Search --> : ? about forms


davyboy
01-06-2003, 02:46 AM
Hello,
I hope you guys ccan help me out here.
This is what i got, i got code from paypal to automatically access account for donation.
here is the code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Tm4@comcast.net">
<input type="hidden" name="item_name" value="Tm4 Kill House Donation">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>


Ok now this works fine i put it on a html page and a button appears and click it and it does its thing. Now my problem is this, Our Web page is mostly flash and i cant put this code using swish so i put a button in the flash part and linked it to the html with the above code and it works fine, but when i get to the html, i have to push a button again to get where i need to go, is there any way on the html side with the aove code to bypass the summit button and have it automatically load, so i dont have to push the button the second time??

If you would like to check it out the paypal button is on the home page of(click skip flash intro)
www.tm4.us

ANy help would be greatly appreciated!!
Davyboy

:D

Stefan
01-06-2003, 04:33 AM
Originally posted by davyboy

If you would like to check it out the paypal button is on the home page of(click skip flash intro)
www.tm4.us

ANy help would be greatly appreciated!!
Davyboy

:D [/B]

I tried to help but in my browser there is no skip intro button, just a big "download plugin" area.

Please tell me you havn't done something really stupid like put the skip flash button INSIDE the flash...

davyboy
01-06-2003, 05:20 PM
Dave i thank-you for trying to straighten me out, but when it comes to code i dont know to much, so here is the total html code and if you could let me know where to put what you gave me.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Please click here to proceed</title>
<script id=clientEventHandlersVBS language=vbscript>

</script>
</head>
<body bgcolor="#000000">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Tm4@comcast.net">
<input type="hidden" name="item_name" value="Tm4 Kill House Donation">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form >
</html>

Sorry i am not so good at this part, this is all a learning experience for me
thank-you ,
Davyboy

Stefan
01-07-2003, 04:39 AM
Well, since we are posting full code we might as well add the parts that will make it pass through the W3C validator. Here it is for those interested :)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Please click here to proceed</title>
<script id=clientEventHandlersVBS language=vbscript>

</script>
</head>
<body bgcolor="#000000" onload="document.forms[0].submit0.click();">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<p>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Tm4@comcast.net">
<input type="hidden" name="item_name" value="Tm4 Kill House Donation">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-but04.gif" border="0" name="submit0" alt="Make payments with PayPal - it's fast, free and secure!">
</p>
</form>
</html>

davyboy
01-07-2003, 03:47 PM
WELL THATS COOL, BUT I CANT GET IT TO WORK EITHER WAY BUT AFTER I REMOVED THE SCRIPT TAGS, I GOT ERROR THAT DOCUMENT.SUMBMIT0 IS NULL OR NOT AND OBJECT, BUT OH WELL ATLEAST I AM LEARNING HERE, ITS FATHER THAN I GOPT BEFORE!!!lol, I DO THANK-YOU GUYS FOR YOUE HELP, BY THE WAY I AM USING FRONT PAGE 2002 I DONT KNOW IF THAT MAKES A DIFFERENCE OR NOT

King Pellinore
01-08-2003, 12:21 AM
You don't need, I don't think, to use HTML. In HTML, when the user clicks the Submit button, the browser sends a request to the server using a method (in your case POST). This way, along with the request, the server also receives all your variables in a header, which is hidden from the viewer.

Flash has capabilities to mimic this behaviour (one of its functions). I don't like Flash, but I found this page, may be to start off:
http://www.macromedia.com/support/flash/ts/documents/f4_form.htm