Problem with PHP code- simple contact form


Posted on 16th Feb 2014 07:03 pm by admin

I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a contact form with PHP code in it- grabbed it from the sitemaster website. Unfortunately my form isn't sending any information to the account or anything when i hit submit- I'm using Go Live CS (Don't ask) The problem is when I preview the PHP code i get this.

is_valid) { header( "Location: $errorurl" ); exit ; } } if (empty($email)) { $email = $mailto ; } $fromemail = (!isset( $use_webmaster_email_for_from ) || ($use_webmaster_email_for_from == 0)) ? $email : $mailto ; if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "This message was sent from:n" . "$http_referrern" . "------------------------------------------------------------n" . "Name of sender: $fullnamen" . "Email of sender: $emailn" . "------------------------- COMMENTS -------------------------nn" . $comments . "nn------------------------------------------------------------n" ; $headers = "From: "$fullname" <$fromemail>" . $headersep . "Reply-To: "$fullname" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.15.0" . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ; if ($use_envsender) { mail($mailto, $subject, $messageproper, $headers, $envsender ); } else { mail($mailto, $subject, $messageproper, $headers ); } header( "Location: $thankyouurl" ); exit ; ?>

Did you know?Explore Trending and Topic pages for more stories like this.
That comes up
No comments posted yet

Your Answer:

Login to answer
142 Like 37 Dislike
Previous forums Next forums
Other forums

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

Change of partner analyse in sales orders
Hello,

I changed the partner analyse for sales orders and added a new mandatory partnerro

Need help PLEASE
ok i have this warning showing up

Warning: in_array() [function.in-array]: Wrong datatype for

If statement help please.
Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and th

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Tournament Brackets (Double Elimination)?
Is making a double elimination tournament style bracket system capable of being done in php?

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

Linked Keywords
I am trying to get a script that makes my predefined keyword converted to links and / or converted t

Is there a function ... auto send IP
Is there some function that can be sent to a ddns service that returns the ip address of a ddns forw

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash