i have tried uploading my 2 script on geocities for testing purposes
this is the problem i encounter:
when i click on the submit button, it will be directed into a blank page. I think its because i didn't direct the sendmail.php to a confirmation script.(correct me if im wrong). But it did not send to my email. can anyone help me to solve this problem. is it because of my script??
thanks in advance..
this is my sendmail.php
<?
if ($_POST['Name'] != "")
{
$Name = isSet($_POST['Name']) ? $_POST['Name'] : NULL;
$Email = isSet($_POST['Email]) ? $_POST['Email'] : NULL;
$Egold = isSet($_POST['Egold']) ? $_POST['egold'] : NULL;
$acc = isSet($_POST['acc']) ? $_POST['acc'] : NULL;
$PPadd = isSet($_POST['ppadd']) ? $_POST['ppadd'] : NULL;
$msn = isSet($_POST['msn']) ? $_POST['msn'] : NULL;
}
mail("abc@def.com","testing", $Egold, "testing");
?>
this is my form script
<?
$link = mysql_connect("127.0.0.1", "mysql")
or die("Could not connect: " . mysql_error());
mysql_select_db("ttmodule", $link)
or die("Unable to select database: . mysql_error()");
?>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>GlobalGoldMart</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" background="images/body_repeat.jpg">
<table border="0" cellpadding="0" cellspacing="0" width="1183" height="327">
<tr>
<td valign="bottom" bgcolor="#003366" colspan="2" height="54" align="left" width="1183">
</td>
</tr>
<tr>
<td colspan="2" height="76" align="left" dir="ltr" width="1183">
<b><font color="#FFFFFF" size="5"> </font></b></td>
</tr>
<tr>
<td msopnltype="NavBody" width="223" align="left" valign="top" dir="ltr" height="36">
<td valign="top" height="41" width="960" dir="ltr">
<font size="5" color="#FFFFFF" face="Arial"><b>xxxb></div> </font>
<font size="5" face="Arial">
</font>
</font>
</td>
</tr>
<tr>
<td msopnltype="NavBody" width="223" align="left" valign="top" dir="ltr" height="36">
<td valign="top" height="36" width="960" dir="ltr">
</td>
</tr>
<td msopnltype="NavBody" width="223" align="left" valign="top" dir="ltr" height="533">
<p dir="ltr"><b>
<font color="#FFFFFF">
<font size="2" face="Arial Narrow">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </font>
<a href="main.htm" style="text-decoration: none">
<font face="Arial Narrow" size="2" color="#FFFFFF">xxx</font></a></b><p dir="ltr">
<b><font color="#FFFFFF"><font face="Arial Narrow" size="2">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </font>
<font color="#003470" size="2" face="Arial Narrow">
<a href="about-us.htm" style="text-decoration: none">
<font color="#FFFFFF">xxx</font></a></font></b><p dir="ltr"><b>
<font color="#FFFFFF">
<font size="2" face="Arial Narrow">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </font>
<font color="#003470" size="2" face="Arial Narrow">
<a href="fee.htm" style="text-decoration: none">
<font color="#FFFFFF">xxx</font></a></font></b><p dir="ltr">
<font color="#FFFFFF"><b>
<font size="2" face="Arial Narrow">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </b>
</font>
<a href="sellgold.htm" style="text-decoration: none"><b>
<font face="Arial Narrow" size="2" color="#FFFFFF">Buy </font></b></a><b>
<font color="#003470" size="2" face="Arial Narrow">
<a href="sellgold.htm" style="text-decoration: none">
<font color="#FFFFFF">xxx</font></a></font></b><p dir="ltr"><b>
<font color="#FFFFFF">
<font size="2" face="Arial Narrow">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </font>
<font color="#003470" size="2" face="Arial Narrow">
<a href="faq.htm" style="text-decoration: none">
<font color="#FFFFFF">xxx</font></a></font></b><p dir="ltr"><b>
<font color="#FFFFFF">
<font size="2" face="Arial Narrow">
<img border="0" src="bullet.JPG" width="17" height="14"></font> </font>
<font color="#003470" size="2" face="Arial Narrow">
<a href="contact.htm" style="text-decoration: none">
<font color="#FFFFFF">xxx</font></a></font></b><p dir="ltr"> </p>
<p dir="ltr"> </p>
<p dir="ltr"> </p>
<p dir="ltr"> </p>
<p dir="ltr"> </p>
<p dir="ltr"> </p>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="56" cellSpacing="0" cellPadding="0" width="100%" border="1">
<tr>
<td width="13%" height="31"> </td>
<td width="87%" height="31"><font color="#ffffff">
<img src="images/egold.gif" border="0" width="88" height="31"></font></td>
</tr>
<tr>
<td width="100%" colSpan="2" height="24"><font color="#ffffff">
Free Account</font></td>
</tr>
</table>
<p dir="ltr"> </p>
<p dir="ltr"><b>
<td valign="top" height="533" width="960" dir="ltr">
<p dir="ltr"><font color="#FFFFFF"><font face="Arial">Please fill in all your details to ensure valid submission.</font><br>
</font></p>
<form name="testing" action="sendmail.php" method="post">
<table border="0" align="" cellpadding="0" cellspacing="0" id="form_border" dir="ltr" height="404">
<tr>
<th width="25%" align=right dir="ltr" height="20">
</tr>
<tr>
<th align=right width="394" dir="ltr" height="23">
<font face="Arial" color="#FFFFFF">Full Name: </font></th>
<td valign="middle" align="left" width="50%"><input name="Name" size="20"></td></font></td>
</tr>
<tr>
<td align="right" dir="ltr" height="23">
<font face="Arial" color="#FFFFFF"><b>Email Address:</b> </font></td>
<td valign="middle" align="left" width="50%"><input name="Email" size="20"></td></font></td>
</tr>
<tr>
<td align="right" dir="ltr" height="23"><font face="Arial" color="#FFFFFF"><b>Amount of eGold:</b> </font></td>
<td valign="middle" align="left" width="50%"><input name="egold" size="20"></td></font></td>
</tr>
<tr>
<td align="right" dir="ltr" height="23"><font face="Arial" color="#FFFFFF"><b>E-Gold Account Number:</b> </font></td>
<td valign="middle" align="left" width="50%"><input name="acc" size="20"></td></font></td>
</tr>
<tr>
<td align="right" dir="ltr" height="23"><font face="Arial" color="#FFFFFF"><b>PayPal Email Address:</b> </font></td>
<td valign="middle" align="left" width="50%"><input name="ppadd" size="20"></td></font></td>
</tr>
<tr>
<td align="right" dir="ltr" height="23"><font face="Arial" color="#FFFFFF"><b>MSN/Yahoo Address:</b> </font></td>
<td valign="middle" align="left" width="50%"><input name="msn" size="20"></td></font></td>
</tr>
<tr>
<th align=right width="394" dir="ltr" height="28"> </th>
<td dir="ltr" height="28" >
<font color="#FFFFFF">
<input type="submit" value="Submit"> </font>
<p> </p>
<p>
</td>
</tr>
</table>
</form>
<p>
<font face="Verdana" size="2">
<span style="COLOR: #FFFFFF; FONT-FAMILY: MS Shell Dlg">© Copyright
xxx, 2008. All rights reserved. </span>
</font>
</td>
</tr>
<tr>
<td valign="top" height="126" align="left" colspan="2" width="1183">
</td>
</tr>
</table>
</body>
</html>
<?
mysql_close($link);
?>