Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 05-08-2009, 02: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, 09:55 AM   #12 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,722

CrazeD will become famous soon enoughCrazeD will become famous soon enough

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'];
}

?>

__________________

Intel Q9400 | Gigabyte EP45-UD3P | G.Skill 2x2GB DDR2 1000 | XFX HD5870

Need website help? PM me!
CrazeD is offline  
Old 05-21-2009, 02: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 10:14 AM
PHP form murdocsvan Programming Discussions 7 03-11-2009 10:00 PM
PHP mail() function GordyMac Programming Discussions 15 02-07-2009 09:01 PM
Looking for php form input and display script linux1880 Programming Discussions 3 06-03-2008 09:23 PM
Need PHP and JavaScript Form Validation Scripts aetherh4cker Programming Discussions 2 01-06-2008 03:16 PM