Page 1 of 1

contact form error pls help

Posted: Sun Aug 23, 2009 6:14 am
by thanovice
browser error code


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@me--time.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2 Server at http://www.me--time.co.uk Port 80



htaccess file

AuthUserFile /home/sites/me--time.co.uk/public_html/.htpasswd
AuthGroupFile /
home/sites/me--time.co.uk/public_html/.htgroup

AuthName "Web Builder"
AuthType Basic

<FILES .htpasswd>

deny from all
</FILES>

<FILES .htgroup>
deny from all
</FILES>








contact.ini

; Please set your contact configuration below.
;
; http://www.me--time.co.uk/

[contact] ; info@me--time.co.uk sendTo = "nzippy11@hotmail.com"

; whether or not to validate the following fields
validateName = true
validateEmail = true
validateMessage = true

; subject when left empty
defaultSubject = "Website Feedback"

; page to redirect to on an error
onError = "contactError.html"

; page to redirect to when successful
onSuccess = "contactSuccess.html"

; maximum length of any input
maxLength = 4096



contact php file

<?php $c=parse_ini_file("./contact1.ini");foreach
($_POST as $k => $v){$i->$k=strip_tags(str_replace
("\n","",$v));if(strlen($i->$k)>$c['maxLength']){header
("Location: ".$c['onError']);exit;}}if(!$i->subject)
{$i->subject=$c['defaultSubject'];}if(($c['validateMessage']
&&!$i->message)||($c['validateName']&&!$i->name)){header
("Location: ".$c['onError']);exit;}if($c['validateEmail'])
{if(stristr($i->email,"@")){list($u,$h)=Split("@",$i->email);
}else{$u="";}if(!$u||!$i->email||!checkdnsrr($h,"MX")){header
("Location: ".$c['onError']);exit;}}$h="Content-type:
text/html; charset=utf-8\nMIME-Version: 1.0\nFrom: \"".$i->
name."\" <".$i->email.">\n"."Repl

Re: contact form error pls help

Posted: Sun Aug 23, 2009 7:01 pm
by yacahuma
you dont seem to have php configured properly. Please read the installation manual

http://www.php.net/manual/en/