Click to See Complete Forum and Search --> : help me please


ssatterlee
03-05-2005, 12:48 PM
hello everyone. I have a button on my site which when clicked submits the data in the form to my email, then re-directs to another page with a single button on it. the second pages button goes to a checkout from paypal.com I was wondering how; do I put the two buttons together into one button that first submits the info via email and then re-directs the user to the pay pal buy page. if anyone has any suggestions at all or info on how to make a button have 2 actions, please reply. thank you.

the tree
03-05-2005, 12:52 PM
I don't see why the page that the form action leads to couldn't have to things to do in it. Just put one after the other.

ssatterlee
03-05-2005, 01:00 PM
- can anyone help?

ssatterlee
03-05-2005, 01:03 PM
I see what you are saying, that is how it is right now. first the user clicks the button, info it sent to me, then the user is directed to a page with a single pay pal button. but: instead of the page with the single pay pal button I want to combine them together, right after the user submits the data the same button directs the user to the pay pal check out page. there is no need for the extra button and I am not giving up until I get it to work properly.

russell
03-05-2005, 02:18 PM
this is easy to do server side. what server-side language are u using?

u could also use javascript, but be aware that it won't work for everybody

// on the page with just the 1 button to go to paypal
<script><!--
function submitMe() {
document.myForm.submit();
}
// -->
</script>
<body onload="submitMe()">
<form name=myForm action="paypal.html" method=post>
...
<input type="submit">
</form>
</body>

ssatterlee
03-05-2005, 03:01 PM
thank you so very much, I am glad there are still geniouses in the world because I wouldn't have been able to think of that on my own thank you.