
RockoX - Contact Form [ Fixed ]
Step1
Please replace all of the code in process.php with the following:
<?php $to = "you@yourdomain.com"; $from = $_POST["email"]; $message = " <strong>Name: </strong>".$_POST["name"]." "; $message .= " <strong>Email Address: </strong>".$_POST["email"]." "; $message .= " <strong>Company: </strong>".$_POST["company"]." "; $message .= " <strong>Website: </strong>".$_POST["website"]." "; $message .= " <strong>Message: </strong>".$_POST["message"]." "; $subject = 'New Contact'; $headers = "From: ".$_POST["email"]."\n"; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $send = mail($to,$subject,$message,$headers); if($send) { echo "success"; } else { echo "error"; } ?>
Step2
Please include the following js file above the all other included js files.
<script src="js/jquery.min.js"></script>
That's it