Using a button to send mail?

the mail() function

Moderators: macek, egami, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Fri Mar 28, 2003 5:56 am

<a href=mailto:my@mail.com>my@mail.com</a>

bonkers
New php-forum User
New php-forum User
Posts: 45
Joined: Wed Mar 12, 2003 7:17 pm

Post by bonkers » Thu Jun 26, 2003 7:02 am

Simlply mail with a form and link to the form:

<a href="mail.php&option1=whatever&option2=whateveragain">Mail</a>

mail.php

Code: Select all

<?
mail($_GET[option1],$_GET[option2]);
?>

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest