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 ; ?>
That comes up
No comments posted yet
Your Answer:
Login to answer
142
37
Other forums
Advice on how to delete a mysql row using my form
Hi,
I am very new to php and am struggling to work out how to delete a portfolio item (a row
Open link with largest int string first
I have the following links i would like to open either all at once or one-by-one. How would i procee
output_buffering so rewrite
I'm planning to rewrite some of my scripts so they don't have to use output buffering to accomplish
am I using this for loop correctly
Dear buddies!
Right now I am generating a report with some details for all the dealers.
Multithreading design
Hi
I have come up with a Singleton class that manages a pool of database connections. Basical
Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for
Hardcopy printing is to wide
I want to make a hardcopy at runtime of my active form like this
PHP Array quick help
I need
$_SESSION{'username'} to be like this:
if $_SESSION['username'] = "gay
Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.
Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d