homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Automatic Forward
Auto submit from form
ornclo




msg:4378841
 8:17 pm on Oct 24, 2011 (gmt 0)

Okay, let's see if I can have one of "you" help me with this.
I posted this in another forum and haven't gotten any response.

I have created a particular kind of button that requires a table formula instead of a "form" formula.

as such is what I have now:


<table id="button" cellpadding=0 cellspacing=0 border=0 align=bottom>
<tr>
<td style="padding-right:0px" title ="Tithe & Offering" align="bottom">
<a href="https://www.paypal.com/us/cgi-bin/webscr" target="_blank" title="Tithe & Offering" style="background-image:url(button-files/tithebutton.png);
width:147px;height:71px;display:block;">
</a>

</td>
</tr>
</table>


I need this button to redirect to PayPal.
However, when I go onto PayPal, it has the option of creating your own button with a "form" formula.
So in order to solve this, I created a "forward.html" and what I am wanting it to do is basically auto submit.

This is what I have now:



<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>forwarding...</title>

</head>

<body>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="UW7AMX4LRJWK2">
<input type="image" src="" border="0" name="Continue" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

</body>

</html>



Please, any help would be greatly appreciated.

Thank you in advance.

 

caffinated




msg:4379089
 11:18 am on Oct 25, 2011 (gmt 0)

I guess something like this would work, no?


<table id="button" cellpadding=0 cellspacing=0 border=0 align=bottom>
<tr>
<td style="padding-right:0px" title ="Tithe & Offering" align="bottom">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="UW7AMX4LRJWK2">
<input type="image" src="" border="0" name="Continue" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</table>

ornclo




msg:4379338
 9:30 pm on Oct 25, 2011 (gmt 0)

Here is the trick.
With the way that it is set up now, there is a "<a> hover" feature that takes place.
In other words, the button lights up when you hover over it.

With a <form> function, there is no <a> in order for it to work, just a "src" or "action".

That is why I was looking to see if I could auto submit.

Otherwise, I will just simplify and make the PayPal button static.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved