want to send email on the click of a button

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

want to send email on the click of a button

Post by nutstretch »

I have a site which has a link to go purchase a product. At present, this can only be done by going to another site to buy the product. For my statistical purposes and for general interest I would like the site to nitify me every time someone uses the link as this will give me some kind if insight into the success.

Does anyone know how i can send an email when someone clicks the link button. Do I have to put it into a proceedure? The button at present is not in a from it is just a button to link.

I know how to send an email when using a form and going to another page but not from the page itself. I don't particulary want the user to know an email has been sent so don't want to stray for the page they are on. the link opens up in another window.

Any help appreciated

Angie
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

have the link point to a page which does the email, in the url have the page it's coming from (encoded in some fashion), then redirect back to the sending page with maybe a message that shows up on the page.. The message could be sent via session variables..
Post Reply