Jump to content

domskidan

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

domskidan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I got it working re worked the script a little bit Mailer form: <?php // ----------------------------------------- // The Web Help .com // ----------------------------------------- // remember to replace you@email.com with your own email address lower in this code. // load the variables form address bar $subject = $_REQUEST["subject"]; $name = $_REQUEST["name"]; $phone = $_REQUEST["phone"]; $email = $_REQUEST["email"]; $reason = $_REQUEST["reason"]; $message = $_REQUEST["message"]; $from = $_REQUEST["from"]; $break = "\n\n"; $verif_box = $_REQUEST["verif_box"]; // remove the backslashes that normally appears when entering " or ' $eventtype = stripslashes($eventtype); $phone = stripslashes($phone); $name = stripslashes($name); $message = stripslashes($message); $subject = stripslashes($subject); $from = stripslashes($from); // if verification code was correct send the message and show this page mail("info@pwcwater.com", 'New Contact Message: '.$subject, "\n".'****** New Contact Message ******'.$break.'Name: '.$name.$break.'Phone Number: '.$phone.$break.'E-mail: '.$email.$break.'Reason For Contact: '.$reason.$break.'Message: '.$message.$break, "From: $from"); // delete the cookie so it cannot sent again by refreshing this page setcookie('tntcon',''); ?>
  2. Thank You. That looks great and I tried something similar before that didn't work. I decided to remove the image verification because this whole GD library deal is way above me and I am running out of time trying to figure it out. I tried using your code and I got this parse error: Any ideas? Once again thanks, Dan
  3. Hello Guys, I'm new here, I have been building some e-commerce sites with order forms, the order forms are simple mail form scripts. The problem is in order to mail these forms they require image verification and the php generated image does not show up on the server I am hosting it with. I have researched the problem and I have been told that this may be due to the server not having a GD library installed. My brother and I checked it out, and it was in fact installed so i'm guessing it may just not be configured. Whether than fighting with this though I thought it might just be easier to get rid of the image verification all together, my boss hated it anyway. The website I am working on is http://www.pwcwater.com if you click to buy something you will fill out shipping information and have a product selected. Next there is a screen where you fill out the billing and credit card information. That is where the image verification does not load. Also on the FAQ page there is another mailer form. If there is someone who can help me simply just get rid of the image verification I would really really appreciate it. Page A. (The Form) <form action="contactus_send.php" method="post"> <div align="left"><strong>Name: </strong><br> <input name="name" type="text"> <br> <strong>Phone Number:</strong><br> <input name="phone" type="text"> <br> <strong>E-Mail: </strong><br> <input name="email" type="text"> <br> <br> <strong>Reason For Contacting Us:</strong><br> <select name="reason" id="reason" onChange="MM_jumpMenu('parent',this,0)"> <option>Sales Question</option> <option>Tech Question</option> <option>Website Question</option> <option>Suggestion</option> <option>Feedback</option> </select> <br> <br> <strong>Message:</strong><br> <textarea name="message" cols="60" rows="10"></textarea> <br> </div> Type verification image:</strong><br /> <input name="verif_box" type="text" id="verif_box" /> <img src="../verificationimage.php?<?php echo rand(0,9999);?>" alt="verification image, type it in the box" width="50" height="24" align="absbottom" /><br /> <!-- if the variable "wrong_code" is sent from previous page then display the error field --> <?php if(isset($_GET['wrong_code'])){?> <div style="border:1px solid #990000; background-color:#D70000; color:#FFFFFF; padding:4px; padding-left:6px;width:295px;">Wrong verification code</div> <br> <br /> <?php ;}?> <input name="Submit" type="submit" value="Submit"> </form> Page B (the mailer) <?php // ----------------------------------------- // The Web Help .com // ----------------------------------------- // remember to replace you@email.com with your own email address lower in this code. // load the variables form address bar $subject = $_REQUEST["subject"]; $name = $_REQUEST["name"]; $phone = $_REQUEST["phone"]; $email = $_REQUEST["email"]; $reason = $_REQUEST["reason"]; $message = $_REQUEST["message"]; $from = $_REQUEST["from"]; $break = "\n\n"; $verif_box = $_REQUEST["verif_box"]; // remove the backslashes that normally appears when entering " or ' $eventtype = stripslashes($eventtype); $phone = stripslashes($phone); $name = stripslashes($name); $message = stripslashes($message); $subject = stripslashes($subject); $from = stripslashes($from); // check to see if verificaton code was correct if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ // if verification code was correct send the message and show this page mail("domskidan@gmail.com", 'New Contact Message: '.$subject, "\n".'****** New Contact Message ******'.$break.'Name: '.$name.$break.'Phone Number: '.$phone.$break.'E-mail: '.$email.$break.'Reason For Contact: '.$reason.$break.'Message: '.$message.$break, "From: $from"); // delete the cookie so it cannot sent again by refreshing this page setcookie('tntcon',''); } else { // if verification code was incorrect then return to contact page and show error header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true"); exit; } ?>
×
×
  • 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.