hi,
i think it should be easy but i cant work out how. i am only an amateur. using PHP, how do i put in the subject of an automated email the name which i have got from the user in a form? here is part of the code below
<?php
$to = '[email protected]' . ', '; // note the comma
$to .= $_REQUEST['Email'];
$from = $_REQUEST['Email'];
$name = $_REQUEST['Name'];
$headers = "From: $from";
$subject = "Grand Final Tipping" $_REQUEST['Name'];
$fields = array();
$fields{"Name"} = "Name";
$fields{"Margin"} = "Margin";
$fields{"Game1"} = "Game1";
..............more code..................
yes, just like you said:
[email protected] for an email
Elizabeth for name (if you have it)
and "I wanna play on the monkey bars" as a subject.
thanks for your help
sorry, the subject should say "I wanna play on the monkey bars" as a subject with (user input name) Elizabeth".
i think it should be easy but i cant work out how. i am only an amateur. using PHP, how do i put in the subject of an automated email the name which i have got from the user in a form? here is part of the code below
<?php
$to = '[email protected]' . ', '; // note the comma
$to .= $_REQUEST['Email'];
$from = $_REQUEST['Email'];
$name = $_REQUEST['Name'];
$headers = "From: $from";
$subject = "Grand Final Tipping" $_REQUEST['Name'];
$fields = array();
$fields{"Name"} = "Name";
$fields{"Margin"} = "Margin";
$fields{"Game1"} = "Game1";
..............more code..................
yes, just like you said:
[email protected] for an email
Elizabeth for name (if you have it)
and "I wanna play on the monkey bars" as a subject.
thanks for your help
sorry, the subject should say "I wanna play on the monkey bars" as a subject with (user input name) Elizabeth".