Re: Contact form....

From: Date: Mon, 26 Apr 2010 19:46:55 +0000
Subject: Re: Contact form....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304633@lists.php.net to get a copy of this message
I knew i was missing something.... although it still doesn't work... i'm still getting : "; $send_contact=mail($to,$subject,$message, $header); if($send_contact){ echo "Thank you for Contacting Us!"; } else { echo "An error occured while sending your message, review your information and please try again."; } ?> would it make a difference that i'm running it off of my computer rather than hosting it online? Thanks, Watson On Mon, Apr 26, 2010 at 3:30 PM, Dan Joseph <dmjoseph@gmail.com> wrote: > Looks like you might have errors turned off. I see: > > $subject =$_POST"subject"; > > Which should be: > > $subject =$_POST["subject"]; > > $_POST is an array, and that's how you access those elements. check to see > if errors are on, if not, you'll see errors in the log files. > > -- > -Dan Joseph > > www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo > Code "NEWTHINGS" for 10% off initial order > > http://www.facebook.com/canishosting > http://www.facebook.com/originalpoetry >

« previous php.general (#304633) next »