Forum Moderators: phranque
Well actually it doesn't and I've been trying to fix it all day with no success. The front end works. All incoming and outgoing mail comes though fine except for this one source. Does anyone know why this would be?
I've checked spam lists and my spam filter.
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>Contact Us</title>
<link rel="stylesheet" href="css/main_style.css" type="text/css">
<script language="JavaScript">
<!--
function checkForm(form)
{
if((form.from.value=="")¦¦(form.aName.value==""))
{
if(form.from.value==" "){
alert("Please enter your e-mail address.");}
if(form.aName.value==" "){
alert("Please enter your name.");}
return false;
}
else
{
return true;
}
}
//--></script>
<style type="text/css">
<!--
.style14 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; }
.style10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.style11 {color: #cc0000; margin: 12px 15px 4px 15px; font-weight: bold;}
-->
</style>
</head>
<body bgcolor="#ffffff" text="#ffffff" link="#ffffff" vlink="#ffcc33" alink="#ffcc33">
<table border="0" align="center" cellpadding="0" cellspacing="0" class="pagetable">
<?
require("info.php");
require("topnav1.php");
?>
<tr>
<td class="nav" valign="top">
<?
require("leftnav.php");
?>
<img src="images/nav_bottom.gif" width="157" height="91"></td>
<td class="mainnothome" bgcolor="#FFFFFF" width="614">
<img src="images/pixt.gif" width="594" height="1" alt="space" title="space" border="0" />
<!--CONTENT HERE-->
<p class="mainhead">Your Feedback... </p>
<p class="maincopy">Give us your feedback, so we can improve the website.</p>
<p class="maincopy">Please let us know any improvements that could be made, any issues you had or suggestions you might have. </p>
<p class="maincopy"><span class="style10"><span class="style11"></span></span></p>
<form enctype='multipart/form-data' action='phpform/use/feedback/process.php' method='post'>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="79%" cellpadding="0">
<tr>
<td height="30" width="163"><span class="style14"> Name</span></td>
<td height="30" width="308"><font face="Verdana">
<input type=text name='name'>
</font></td>
</tr>
<tr>
<td height="30" width="163"><span class="style14">E-mail</span></td>
<td height="30" width="308"><font face="Verdana">
<input type=text name='email'>
</font></td>
</tr>
<tr>
<td height="30" width="163"><span class="style14"> Rate the website! </span></td>
<td height="30" width="308"><font face="Verdana">
<select name='rating'>
<option value='10 - Excellent'>10 - Excellent
<option value='9'>9
<option value='8'>8
<option value='7'>7
<option value='6'>6
<option value='5 - Decent' selected>5 - Decent
<option value='4'>4
<option value='3'>3
<option value='2'>2
<option value='1 - Awful'>1 - Awful
</select>
</font></td>
</tr>
<tr>
<td width="163" height="30" valign="top"><span class="style14"> Comments</span></td>
<td height="30" width="308"><font face="Verdana">
<textarea name='comments' rows=10 cols=40></textarea>
</font></td>
</tr>
<tr>
<td colspan="2" height="25"><p align="left"><font face="Verdana" size="2">
<input type=submit value='Submit Form'>
</font></td>
</tr>
</table>
</form>
<p class="maincopy"> </p>
<p class="mainline"></p>
<p>
</p>
</td>
</tr>
</table>
</body>
</html>
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
pt_register('POST','Country');
$Picture=$HTTP_POST_FILES['Picture'];
if($HTTP_POST_FILES['Picture']['tmp_name']==""){ }
else if(!is_uploaded_file($HTTP_POST_FILES['Picture']['tmp_name'])){
$error.="<li>The file, ".$HTTP_POST_FILES['Picture']['name'].", was not uploaded!";
$errors=1;
}
if($errors==1) echo $error;
else{
$image_part = date("h_i_s")."_".$HTTP_POST_FILES['Picture']['name'];
$image_list[3] = $image_part;
copy($HTTP_POST_FILES['Picture']['tmp_name'], "files/".$image_part);
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="First Name: ".$FirstName."
Last Name: ".$LastName."
Country: ".$Country."
Picture: ".$where_form_is."files/".$image_list[3]."
";
$message = stripslashes($message);
mail("hihihi@example.com","Form Submitted at your website",$message,"From: phpFormGenerator");
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $FirstName."¦".$LastName."¦".$Country."¦".$where_form_is."files/".$image_list[3]."
";
fwrite($make,$to_put);
?>
<!-- This is the content of the Thank you page, be careful while changing it -->
<h2>Thank you!</h2>
<table width=50%>
<tr><td>First Name: </td><td> <?php echo $FirstName; ?> </td></tr>
<tr><td>Last Name: </td><td> <?php echo $LastName; ?> </td></tr>
<tr><td>Country: </td><td> <?php echo $Country; ?> </td></tr>
<tr><td>Picture: </td><td> <?php echo $Picture; ?> </td></tr>
</table>
<!-- Do not change anything below this line -->
<?php
}
?>
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>Contact Us</title>
<link rel="stylesheet" href="css/main_style.css" type="text/css">
<script language="JavaScript">
<!--
function checkForm(form)
{
if((form.from.value=="")¦¦(form.aName.value==""))
{
if(form.from.value==" "){
alert("Please enter your e-mail address.");}
if(form.aName.value==" "){
alert("Please enter your name.");}
return false;
}
else
{
return true;
}
}
//--></script></head>
<body bgcolor="#ffffff" text="#ffffff" link="#ffffff" vlink="#ffcc33" alink="#ffcc33">
<table border="0" align="center" cellpadding="0" cellspacing="0" class="pagetable">
<?
require("info.php");
require("topnav1.php");
?>
<tr>
<td class="nav" valign="top">
<?
require("leftnav.php");
?>
<img src="images/nav_bottom.gif" width="157" height="91"></td>
<td class="mainnothome" bgcolor="#FFFFFF" width="614">
<img src="images/pixt.gif" width="594" height="1" alt="space" title="space" border="0" />
<!--CONTENT HERE-->
<p class="mainhead">Your Feedback... </p>
<p class="maincopy">Thanks for sharing your feedback with us!</p>
<p class="maincopy">We will bear all serious comments in mind when updating our website. </p>
<p class="mainline"></p>
<p>
</p>
</td>
</tr>
</table>
</body>
</html>
[edited by: GGR_Web at 7:51 am (utc) on Oct. 2, 2008]
[edited by: phranque at 9:41 am (utc) on Oct. 2, 2008]
[edit reason] removed specifics [/edit]