Problem with PHP code- simple contact form
Posted on
16th Feb 2014 07:03 pm by
admin
Hi Folks,
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
183
12
Other forums
question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<
Problems with array
This code is the last lines in an upload script that uploads 4 images at the same time and writes th
Error: SQL Syntax; Line 1
Code:
<?php require "global_settings.php"; ?>
<title&g
Getting Resource id #11 while trying to connect..
So i tried using "DEFINE" for the first time and im using the variables i defined to conne
Progress bar for webpage
Hi,
I want to implement a progress/waiting bar on my webpage - exactly the same thing that the Mi
pspell
using pspell, is it possible to get words that would be best in the current phrase?
For examp
I think i'm using the syntax incorrectly
Hi Everyone!
I'm new to this forum and a newbie with PHP - I'm glad I found this site - I hop
Linked Keywords
I am trying to get a script that makes my predefined keyword converted to links and / or converted t
Count of reciepients in php mailer
How can i sent a mail to large no of reciepients say 10,00,00 Using PHP MAILER
Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i