Jump to content

webshark360

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

webshark360's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Here is the code for my form and send script what exactly is the problem? FORM CODE <head> <script type="text/javascript" language="javascript" src="js/validation_contact.js"></script> </head> <section id="enquiry_frm"> <form id="cform" name="cform" method="post" onsubmit="return ccheckform()" action="send_form.php"> <aside class="left"> <h2>Contact Us <span>Today</span></h2> <input type="text" value="Name" name="cname" id="cname" onFocus="if (this.value == 'Name') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Name';}" /> <input type="text" value="Email" name="cemail" id="cemail" onFocus="if (this.value == 'Email') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Email';}"/> <input type="text" value="Phone Number" name="cphone" id="cphone" onFocus="if (this.value == 'Phone Number') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Phone Number';}"/> </aside> <aside class="right"> <textarea rows="" cols="" name="cmessage" id="cmessage" onFocus="if (this.value == 'Message') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Message';}" >Message</textarea> <center><input type="submit" value=""/></center> </aside> </form> <img src="images/social_icons.png" alt="" style="float:right;margin-top:16px;"> <section class="clear"></section> </section> SEND FORM CODE <?php //$to = "MyEmail@gmail.com"; $to = "MyEmail@gmail.com"; $from= "Webshark360.com.com"; $subject="webshark360.com form has been submitted by $cname"; $cname=$_REQUEST['cname']; $cphone=$_REQUEST['cphone']; $cemail=$_REQUEST['cemail']; $cmessage= $_REQUEST['cmessage']; $SpamErrorMessage="No Websites URLs permitted"; if (preg_match("/http/i", "$cname")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$cphone")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$cemail")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$cmessage")) {echo "$SpamErrorMessage"; exit();} $message=" Name -$cname Phone-$cphone Email ID-$cemail Message-$cmessage"; $sent = mail($to, $subject, $message,$headers) ; if($sent) { header("location:thanks.php"); } ?>
  2. I have a question regarding my email form submission. The email seems to work fine, but the recipient of the email can view my server information (see attached image for example) there are many website hosted on my server and i would like to hide the server info on form submissions. does anyone know of a way to do this? thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.