macahnla mata one mekata register wena date eka data basee ekata yavanna anithe eka thamai meke message ekata daganna one register vecha date ekai eka expire venna date ekai da ganna one plz help ekak onne yaluwaneee<?php
$First=$_POST["first"];
$Last=$_POST["last"];
$email=$_POST["email"] ;
$City=$_POST["city"] ;
$Address=$_POST["address"] ;
$country=$_POST["country"] ;
$how=$_POST["how"] ;
$Postal=$_POST["postal"] ;
$State=$_POST["state"] ;
if (strlen($First)=="")
{
echo "Please enter Your Details";
}
else
{
$a=date("y");
$b=date("m");
$c=date("d");
$d=date("h");
$e=date("i");
$f=date("s");
$num=$a.$b.$c.$d.$e.$f;
echo "Check Your Email. Thank You ".$_POST["first"];
$username="youuser";
$hostname="localhost";
$password="147147";
$con=mysql_connect($hostname,$username,$password);
$select=mysql_select_db("registergood",$con);
$result=mysql_query("INSERT INTO register (First,Last,email,City,Address,country,how,Postal,State,Refnu) VALUES ('$First', '$Last', '$email', '$City', '$Address', '$country', '$how', '$Postal', '$State', $num)");
$to = '[email protected]' . ', '; // note the comma
// subject
$subject = "you subjet";
// message
$message = "
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<img src=\"http://www.yoursite.com/images/logo_plain.png\"/><br /><br />
<table>
<tr>
<td>Dear ".$First." ".$Last."</td><td> (".$num.")</td>
</tr>
</table><br />
</body>
</html>
";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: name| site name<[email protected]>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
}
?>
Last edited:


. it calls time stamp.you can convert time stamp into date format 