Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 8th, 2004, 05:47 PM
markhegz markhegz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 markhegz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php form problem

cant get this to work...when i uncomment this line:
PHP Code:
//$message = $_POST["message"]; 

and comment out the other three message lines it works fine.

what am i doing wrong?

PHP Code:
<?php

$sendTo 
"info@themovement.com";
$subject "twm contact form";

// header information not including sendTo and Subject
// these all go in one variable.  First, include From:
$headers "From: " $_POST["name"];
$headers .= "<" $_POST["email"] .">\r\n";

// next include a Reply-To:
$headers .= "Reply-To: " $_POST["email"];

// now we can add the content of the message to a body variable
//$message = $_POST["message"];
$message_ =_ $_POST["message"] ."\n";
$message_.=_$_POST["company"] ."\n";
$message_.= $_POST["phone"] ."\n"

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo$subject$message$headers);
?>

Reply With Quote
  #2  
Old January 8th, 2004, 07:27 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,457 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 h 46 m 34 sec
Reputation Power: 503
Facebook MySpace
Hi, try:

$message = $_POST["message"] ."\n";
$message.= $_POST["company"] ."\n";
$message.= $_POST["phone"] ."\n";

if that doesnt work try swapping " 4 ' :

$message = $_POST['message'] ."\n";
etc..
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > php form problem


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 1 hosted by Hostway