SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2001
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking combining form post to email and paypal in 1 click

    Hi I was wondering what the script would be to take data from a form and send me an email and at the same click have the user sent to paypal to pay for the service asked for in the form but not to send the form info to paypal and advice?

  2. #2
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whcih type of script were you looking for? PHP? ASP? CFML?

    Its pretty much the same idea with all of them. Just define the variables (EG: for PHP: $message = $_POST["message"] ect...) then send the mail using a mail function or whatever your language of choice offers, then redirect or set the header to the paypal url
    Mike
    It's not who I am underneath, but what I do that defines me.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2001
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script language="JavaScript">firsthalf="username"secondhalf="@domain.com"document.write("<a href=\"mailto:" + firsthalf + secondhalf + "\">Email Me</a>")</script> this is a javascript to stop email from being harvested. This script separates the name into two pieces puts them back together and then emails. I was thinking about how to add two emails together into 1 click using an embeded javascript is this making any sense?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •