Hi All,
I had a problem in my web blog last week, and after sending to my web hosting company they added in my .htaccess this:
AddHandler application/x-httpd-php5 .php
After editing my .htaccess the web blog started to work normal without facing any issue at all
BUT, my Email Form stopped working and I tested everything and I also contacted my web hosting support and they said I have to change extention from .php to php4 !!
Is there's a way to let my Email Form work again without changing the file extention from .php to php4 ?? putting in mind that the Email Form is 100% coded in a manar way
<?php if ($q == 1) {die();}else{}
###########################################################
$to = "email@website.ltd"; #Enter your email address here #
###########################################################
?>
<?php
if ($check == yes) {
$from = $_POST['from'];
$subject = $_POST['subject'];
$about = $_POST['about'];
$url = $_POST['url'];
$message = $_POST['message'];
$to="$to";
$headers.= "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; ";
$headers.= "charset=UTF-8\r\n";
$headers.= "From: $from";
$subject = "$subject";
$body = "$about<br/>$url<br/>$message";
if (empty($from)) {echo '<div align="center"> Error : Please enter your email address </div>'; die();}
if (empty($subject)) {echo '<div align="center"> Error : Please enter a subject </div>'; die();}
if (empty($message)) {echo '<div align="center"> Error : Please enter a message </div>';die(); }
$send_check=mail($to,$subject,$body,$headers);
if ($send_check!=true) {
die();
}
?>
<?php } $q = '1'; ?>
Waiting a reply