Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PHP Contact Form Type Thing

 
Lifelesspeople.com Forum Index -> Web Architects' Abode
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
flaming-ace
Experienced Poster


Joined: 28 Aug 2007
Posts: 59


PostPosted: Sun Nov 11, 2007 2:00 pm    Post subject: PHP Contact Form Type Thing Reply with quote

Hey everyone, i am looking for a simple php script that works like a contact form but is a bit different.

I have used many contact forms before but i want one that can have many fields for the user to answer a question, then their answer is just placed into the body of the email (itd kinda hard to explain) e.g.
-------------------

Name - __________
Email - __________
Web Site - _________
Other Info - __________

(The _______ represents a text field)

So the user would input the data and then the name, web site, other info would all appear in the body of the email, their email would be who you recieved it from.

Im so sorry im finding it hard to explain.

Add me on msn and i might be able to explain it a bit better.
liamjordann1992@hotmail.com
_________________
[img:0692e75ce3]http://img507.imageshack.us/img507/7623/flamingacesiguy7.jpg[/img:0692e75ce3]
Click Here
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2972
Location: Earth

PostPosted: Sun Nov 11, 2007 2:08 pm    Post subject: Reply with quote

this is basically what i use

Code:
                      $to = "";
                      $subject = "";
                      $message = "This is the information that someone has sent to you. \n
                      =====================================================
                      Name:\t".htmlspecialchars($_POST['Name'])."\n
                      Email:\t".htmlspecialchars($_POST['Email'])."\n
                      Website:\t".htmlspecialchars($_POST['website'])."\n
                      Info:\t".htmlspecialchars($_POST['info'])."\n
                      Sent from IP:\t".$_SERVER['REMOTE_ADDR'];
                      mail($to, $subject, $message);


perhaps you could modify yours. $message contains all thats shown in the body of the email
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Web Architects' Abode All times are GMT - 6 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


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com