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)
[code]
Phone Number:
E-Mail:
Reason For Contacting Us:
Sales Question
Tech Question
Website Question
Suggestion
Feedback
Message:
Type verification image:
<br />
<?php ;}?>
<input name="Submit" type="submit" value="Submit">
</form>
[/code]
Page B (the mailer)
[code]<?php
// -----------------------------------------
// The Web Help .com
// -----------------------------------------
// remember to replace [email protected] 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("[email protected]", ‘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;
}
?>
[/code]