Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 14th, 2003, 12:20 PM
dfano dfano is offline
Always Learning (I Think)
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: NYC Baby!!!!
Posts: 123 dfano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to dfano Send a message via Yahoo to dfano
PHP mail form?????

I have read most of the posts and used what i could. my problem is that when i get the e-mail it has no content, the subject is there and thats it. here is the code im using:

---feedback.html---

<HTML>
<HEAD>
<TITLE>HTML Form</TITLE>
</HEAD>
<BODY>
<FORM method=post action="sendmail.php">
Email: <INPUT name="email" type="text"><br>
Message:<br>
<TEXTAREA name="message">
</textarea><br>
<input type=submit>
</FORM>
</BODY>
</HTML>

---sendmail.php---

<?php ob_start();
$mailto = "info@fs3d.com";
$subject = "Feedback Form Results";
$mailheaders = "From: $email";

//Now send the email using the above variables

mail($mailto, $subject, $email, $message, $mailheaders);
header("Location: http://www.fs3d.com");
ob_flush();?>

Thanks in advance,

Dave

Last edited by dfano : April 14th, 2003 at 12:23 PM.

Reply With Quote
  #2  
Old April 15th, 2003, 04:41 AM
baines baines is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 33 baines User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 51 sec
Reputation Power: 6
Smile Re: PHP mail form?????

Is this a “Register Globals” problem?

Try echoing "$message" in sendmail.php to make sure you are passing the text from the form in to the script correctly.

If not, replace $message with $_POST[‘message’] and see what happens. If this is the fix, you need to do the same with the “From" email address.

Cheers

Baines

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > PHP mail form?????


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT