Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
PHP Contact Form - How to get a field to show up in e-mailed form
Old 01-30-2007, 12:29 AM PHP Contact Form - How to get a field to show up in e-mailed form
Average Talker

Posts: 17
Name: Cristie
Trades: 0
//Send the email if there's no error
else {
$body = "$emessage\n\nName: $ename\nEmail: $eemail\nIp: $eip";
mail($mymail,$esubject,$body,"From: $eemail\n");
echo "<p>Thank you for your email $ename! <p></p>

I'm new to PHP and don't know all the commands and what they mean.

I need to know how to add a new field "ephone" to be sent in the e-mail and I'm not sure how to incorporate it into the "$body =" line. Everything with my form is working, except the fact that the field phone number I added isn't showing up in the receiving end of the e-mail. Any assistance is appreciated.
crr0617 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-30-2007, 03:45 AM Re: PHP Contact Form - How to get a field to show up in e-mailed form
Average Talker

Posts: 28
Name: Ben Allen
Trades: 0
PHP Code:
//Send the email if there's no error
    
else {
      
$body "$emessage\n\nName: $ename\nEmail: $eemail\nPhone: $ephone\nIp: $eip";
      
mail($mymail,$esubject,$body,"From: $eemail\n");
      echo 
"<p>Thank you for your email $ename! <p></p>; 
Depends if $ephone is set to be the phone field as posted from the form though.
ballen is offline
Reply With Quote
View Public Profile
 
Old 01-30-2007, 10:15 AM Re: PHP Contact Form - How to get a field to show up in e-mailed form
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
If you want to learn php thats great but you can get by for something like a contact form with using a third party application like Froms2Go from http://www.bebosoft.com this application will do most of the things you could ever want and it does it in 3 dfiierent languages, php, asp and perl. Give it a try for yourself.
One more thing its also available for mac and pc and you can use the same licence key for both.
Hope this helps
Scorpioserve.
scorpioserve is offline
Reply With Quote
View Public Profile
 
Old 01-30-2007, 10:48 AM Re: PHP Contact Form - How to get a field to show up in e-mailed form
Average Talker

Posts: 28
Name: Ben Allen
Trades: 0
Or for a ready-built free solution (although PHP only) use NateMail.
http://www.mindpalette.com/formprocessing/index.php
ballen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Contact Form - How to get a field to show up in e-mailed form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60248 seconds with 12 queries