hi everyone,
I need a help in the code. I am passing values of a dare and a system name in a mail as a message to a mail id. i am able to pass only the string but not the date value. can some one correct teh code for me.
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<P> </P>
<form id=form1 name=form1>
<?php
$comDate = $_POST['hdndate'];
$comName = $_POST['hdnComName'];
$from = "
[email protected]";
$to = "
[email protected]";
$subject = "hi Admin";
$msg = " $comName is registered by xyz on $comDate "; // help needed here comdate value is not passed.
mail($to, $subject, $msg, "From: {$from}");
echo "You have registered successfully. Please contact Admin";
?>
</form>
</BODY>
</HTML>