php e-mail form

Status
Not open for further replies.
Here is my new html code:

<p><strong>Get a Quote</strong></p>
<form action="/sendit.php" method="post" enctype="text/plain" name="Quote" id="Quote">
<label for="Name">Name</label>
<input type="text" name="Name" id="Name" />

<p>
<label for="E-mail">E-mail</label>
<input type="text" name="E-mail" id="E-mail" />

</p>
<p>
<label for="Team">Team</label>
<input type="text" name="Team" id="Team" />

</p>
<p>
<label for="Age">Age</label>
<input name="Age" type="text" id="Age" size="3" />

</p>
<p>
<label for="Service Type">Service Type</label>
<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>

</p>
<p>
<label for="goal">Give me a quick Description of your goal</label>
<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 />

</p>
</form>

still got the blank value e-mail.
 
Actually kmote, the label will work either way. And in any case, that's not the issue here.

ironlion, when I have odd problems like this, I like to break it down to as simple as possible to eliminate variables.

Try this code for HTML:

Code:
<form action="sendit.php" method="post">
Name: <input type="text" name="name" /><br />
<input type="submit" name="submit" value="Submit" />
</form>

And this PHP:

PHP:
<?php

if (isset ($_POST['submit'])) {
echo $_POST['name'];
}

?>
 
Actually kmote, the label will work either way. And in any case, that's not the issue here.

ironlion, when I have odd problems like this, I like to break it down to as simple as possible to eliminate variables.

Try this code for HTML:

Code:
<form action="sendit.php" method="post">
Name: <input type="text" name="name" /><br />
<input type="submit" name="submit" value="Submit" />
</form>

And this PHP:

PHP:
<?php

if (isset ($_POST['submit'])) {
echo $_POST['name'];
}

?>

CrazeD This worked for me it echoes back what ever I put in as a the name, I'll build off this and will keep you posted where it goes. Thanks.
 
Status
Not open for further replies.
Back
Top Bottom