This is my html code w/ a revised label line. Does this look right? I ran the submit with the original php and got a syntax error on line 2 which is : $name = $_POST['Name'];
<p><strong>Get a Quote</strong></p>
<form action="/sendit.php" method="post" enctype="text/plain" name="Quote" id="Quote">
<label for="Name">Name
<input type="text" name="Name" id="Name" />
</label>
<p>
<label for="E-mail">E-mail
<input type="text" name="E-mail" id="E-mail" />
</label>
</p>
<p>
<label for="Team">Team
<input type="text" name="Team" id="Team" />
</label>
</p>
<p>
<label for="Age">Age
<input name="Age" type="text" id="Age" size="3" />
</label>
</p>
<p>
<label for="Service Type">Service Type
<select name="Service Type" id="Service Type">
<option value="Video Analysis">Video Analysis</option>
<option value="Nutritional Plan">Nutritional Plan</option>
<option value="Fitness Plan">Fitness Plan</option>
<option value="1-on-1 Training (only OC/LA)">1-on-1 Training (only OC/LA)</option>
</select>
</label>
</p>
<p>
<label for="goal">Give me a quick Description of your goal
<br />
<textarea name="goal" id="goal" cols="45" rows="10"></textarea>
<br />
<br />
<input type="submit" name="Submit Quote Request" id="Submit Quote Request" value="Submit" />
<br />
</label>
</p>
</form>
This is the original php page that I'm using again. With the syntax error on line 2.
<? php
$name = $_POST['Name'];
$email = $_POST['E-mail'];
$team = $_POST['Team'];
$service = $_POST['Service Type'];
$goal = $_POST['goal'];
$message = "Team: $team\n Service: $service \n Goal: $goal";
$header = "Name: $name E-mail: $email";
mail ("ironlion27@gmail.com", "Quote Request", $message, $header)
?>
o scratch that, i fixed then syntax error but still getting in my e-mail:
Team:
Service:
Goal:
with no values. I must have used the <label> tag incorrectly in the html file. help?