1) which variables ?
2) HTML variables ? :D
3) to whom is supposed to be sent the email ? is the recipient one of the four variables you mention ?
4) so what exactly do you have, and what do you want ?
Main Topics
Browse All TopicsI have an email page in html,
i was wondering if anyone could help me make a php function
i need it to pass 4 variable
and for it to email people
Thanx for the help guys
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
clearly this is basic, but you get the idea, and this can be modified to adapt to your need
--------------------------
html file named getUserInput.html
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="yourFile.php">
First name: <input type="text" name="first">
<br>
Last name: <input type="text" name="last">
<br>
Email: <input type="text" name="email">
<br>
Age: <input type="text" name="age">
</FORM>
</BODY>
</HTML>
--------------------------
now the php file named yourFile.php
<?
$first =$_POST["first"];
$last =$_POST["last"];
$email =$_POST["email"];
$age =$_POST["age"];
$subject ="your infomation";
$messsage ="Your name is $first $last and you are $age years old";
mail($email, $subject, $message);
?>
Business Accounts
Answer for Membership
by: LornaJanePosted on 2003-10-08 at 04:32:36ID: 9512598
Here's a starter for ten: look at the php manual page on using mail():
en/ref.mai l.php
http://uk2.php.net/manual/
Are you familiar with php at all? Do you have it installed on your system? Let us know how much help you need and someone will help you