HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Submit Form - How to Make Whole Form Appear In Email
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
viathan



Joined: 27 Nov 2007
Posts: 28

PostPosted: Wed Nov 28, 2007 8:26 am     Submit Form - How to Make Whole Form Appear In Email Reply with quote

I am having trouble with a form that I want submitted through PHP. When it is submitted the email body has the text fields in it but they are in this form:

firstnamelastnameaddress

There are no spaces and the drop down menu, raido buttons and check boxes wont show up. How can I make it so when they submit the form the email will match the form's form...if you get that. I have all these listed in my form:

Name
Address
City
State (drop down menu)
Zip
Email

5 Check Boxes (I need to know which ones they check)
4 more text boxes
1 Radio button group with 5 buttons (only 1 can be clicked on and I need to know which they picked)

How can I set up the PHP code for this?
thexpgeek



Joined: 13 Dec 2007
Posts: 24

PostPosted: Thu Dec 13, 2007 11:13 am     hey Reply with quote

are you still having trouble with this?

You can not (i think) display all the options as the value of the variable will only have selected answer.

To format the email
Code:

$body="
Name: $name
Address: $address
City: $city
State: $state
Zip: $zip
Email: $email"
mail("youremailaddress", "subject", $body, "From: $email");
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial