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 ; ?>
That comes up
No comments posted yet
Your Answer:
Login to answer
183
12
Other forums
Mail from PHP form not always ending up in my inbox?
Hi guys,
I'm a real newbie to PHP and have managed to put together a simple mail form that se
Word filter problem
Hello,
im trying to make a filter for words inputted in to my website but i want to store the
Else statement screws up all css
Does anyone know what goes wrong in the process with this php code?
This code seems to be causing
Transaction variant for VA02 not working
My requirement is to have transaction for user to only add the output and print a sales order.
Session problem?!?
Hello All! I am very new to the php world but I am working on fixing things that a previous programm
Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all
mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???
this is the code i got
php unable to sent email
Hi, guys, I try to send a email through php but unfortunately the mail unable to sent. Here is my co
Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass
Help with setcookie()
Merry Xmas to those on this foruum
Older guy here with some experience but not allot so please be