Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-08-2009, 05:32 PM   #1 (permalink)
Junior Member
 
Join Date: 07-08-09
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

marcman is liked by many
PHP Email Form

Hi All,

Almost working.

I get the email when filling out the online form, I get only one field reported back via email which is the Project Type from the drop down menu selection.

The layout looks great in Dreamweaver CS3.

Here's what I have:

div.row {
clear: both;
padding-top: 4px;
}
div.row span.label {
float: left;
width: 100px;
font-size: 12px;
text-align: right;
}
div.row span.formw {
float: right;
width: 180px;
text-align: left;
}
div.spacer {
clear: both;
}

Then, here's the form.

<form id="Contact" name="ContactForm" method="post" action="FormToEmail.php">
<div class="row">
<span class="label">* First Name</span><span class="formw"><input type="text" id="First Name" size="22" /></span>
</div>
<div class="row">
<span class="label">* Last Name</span><span class="formw"><input type="text" id="Last Name" size="22" /></span>
</div>
<div class="row">
<span class="label">* Email Address</span><span class="formw"><input type="text" id="Email Address" size="22" /></span>
</div>
<div class="row">
<span class="label">Phone Number</span><span class="formw"><input type="text" id="Phone Number" size="22" /></span>
</div>
<div class="row">
<span class="label">Project Location</span><span class="formw"><input id="Project Location" type="text" size="22" /></span>
</div>
<div class="row">
<span class="label">Project Type</span><span class="formw">
<select name="select" size="1" id="select">
<option>--Select--</option>
<option>Kitchen</option>
<option>Bathroom</option>
<option>Basement</option>
<option>Full Home Renovation</option>
<option>New Construction (Home)</option>
<option>Commercial Reno (Outdoor)</option>
<option>Commercial Reno (Indoor)</option>
<option>Commercial Const. New</option>
</select>
</span></div>
<div class="row">
<span class="label">Other</span><span class="formw"><input id="Other" type="text" size="22" /></span>
</div>
<div class="row">
<span class="label">Deadline Date</span><span class="formw"><input id="Deadline Date" type="text" size="22" /></span>
</div>
<div class="row">
<span class="label">Budget</span><span class="formw"><input id="Budget" type="text" size="22" /></span>
</div>
<div class="row">
<span class="label">Message</span><span class="formw"><textarea cols="20" rows="8" class="formw">
</textarea>
</span>
</div>
<div class="row">
<span class="formw"><input name="Submit" type="submit" id="Submit" onclick="MM_validateForm('First Name','','R');MM_validateForm('Last Name','','R');MM_validateForm('Email Address','','RisEmail');return document.MM_returnValue" value="Submit" />
<input type="reset" name="Reset Form" id="Reset Form" value="Reset" />
</span></div>
</form>


It works, validates and sends me the email.

But I'm only getting this, it's correct only one field though and the Submit...


Select: --Select--

Submit: Submit

Your suggestions are always appreciated.
__________________
Best regards,
Marc
marcman is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Email form help chuco61 Coding Forum 5 12-17-2008 11:52 AM
[WTS] Form to Email script - ASP searchbliss Content 0 11-13-2008 01:45 PM
Why won't my php form email results? watley Coding Forum 5 10-26-2007 08:36 AM
PHP: Email form Optix Coding Forum 20 04-13-2007 06:04 PM
EMAIL FORM Rossco Web Design Lobby 3 10-29-2006 10:07 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:16 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.