Code: Select all
<?php
$fullname = $_REQUEST["fullname"];
$country = $_REQUEST["country"];
$institution = $_REQUEST["institution"];
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$from = $_REQUEST["from"];
$verif_box = $_REQUEST["verif_box"];
$to=info@seas.org
$content ='
<table width="522" height="235" border="1">
<tbody>
<tr>
<td width="506" height="23" bgcolor="#FFFFFF" colspan="2">
<center>ONLINE FORM </center> <br>
Date : '.date("l dS of F Y h:i:s A").' IP Adress :'.$_SERVER['REMOTE_ADDR'].'
</td>
</tr>
<tr>
<td width="105" height="23" bgcolor="#CCCCCC">Full Name </td>
<td width="403" bgcolor="#CCCCCC">'.$fullname.'</td>
</tr>
<tr>
<td height="23" valign="top">Institution</td>
<td>'.$institution.'</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Country</td>
<td bgcolor="#CCCCCC">'.$country.'</td>
</tr>
<tr>
<td height="29">From</td>
<td>'.$from.'</td>
</tr>
<tr>
<td height="25" bgcolor="#CCCCCC">Comments</td>
<td bgcolor="#CCCCCC">'.$message.'</td>
</tr>
</tbody>
</table>';
// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
mail($to, 'ONLINE FORM: '.$subject,$content, "From: $from");
setcookie('tntcon','');
} else {
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&fullname=$fullname&country=$country&institution=&institution& from=$from&message=$message&wrong_code=true");
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>E-Mail Sent</title>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style></head>
<body>
Email sent. Thank you.<br />
<br />
Return to <a href="/">home page</a> ?
</body>
</html>
Code: Select all
$content ='
<table width="522" height="235" border="1">
<tbody>
<tr>
<td width="506" height="23" bgcolor="#FFFFFF" colspan="2">
<center>ONLINE FORM </center> <br>
Date : '.date("l dS of F Y h:i:s A").' IP Adress :'.$_SERVER['REMOTE_ADDR'].'
</td>
</tr>
<tr>
<td width="105" height="23" bgcolor="#CCCCCC">Full Name </td>
<td width="403" bgcolor="#CCCCCC">'.$fullname.'</td>
</tr>
<tr>
<td height="23" valign="top">Institution</td>
<td>'.$institution.'</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Country</td>
<td bgcolor="#CCCCCC">'.$country.'</td>
</tr>
<tr>
<td height="29">From</td>
<td>'.$from.'</td>
</tr>
<tr>
<td height="25" bgcolor="#CCCCCC">Comments</td>
<td bgcolor="#CCCCCC">'.$message.'</td>
</tr>
</tbody>
</table>';i just want to make a user interface with table, and inside of the table there will be '.$message.' or '.$country.' informations.
also this function is showing the last day, and not current time
'.date("l dS of F Y h:i:s A").' .. do you know the usage of this function for current day/time
Thnx for help me...