Re: Contact form....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux