Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 05-08-2009, 03:53 PM   #11 (permalink)
 
Newb Techie

Join Date: May 2009

Posts: 8

ironlion27 is on a distinguished road

Default Re: php e-mail form

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.
ironlion27 is offline  
Old 05-09-2009, 10:55 AM   #12 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: php e-mail form

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 Code:
<?php

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

?>

__________________

Need website help? PM me!
CrazeD is offline  
Old 05-21-2009, 03:22 PM   #13 (permalink)
 
Newb Techie

Join Date: May 2009

Posts: 8

ironlion27 is on a distinguished road

Default Re: php e-mail form

Quote:
Originally Posted by CrazeD View Post
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 Code:
<?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.
ironlion27 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
php sorting mysql db using html form variable ibexpiotr Programming Discussions 1 04-28-2009 11:14 AM
PHP form murdocsvan Programming Discussions 7 03-11-2009 11:00 PM
PHP mail() function GordyMac Programming Discussions 15 02-07-2009 10:01 PM
Looking for php form input and display script linux1880 Programming Discussions 3 06-03-2008 10:23 PM
Need PHP and JavaScript Form Validation Scripts aetherh4cker Programming Discussions 2 01-06-2008 04:16 PM