i tried all ..passing values in to a form
i tried all the possible way to pass a value to a field inside a form
this is my first file called a.php
<?php
if($submit == "click" && $Name == "test" && $pass == "password")
{
echo "hello, $Name";
echo '
<html>
<body>
<h3> Please enter a Date in the Text time
<form method="post" action="b.php">
<input type="text" name = "date">
<input type="submit" name ="submit" value = "update"></input>
</form>
</body>
</html> ';
}
?>
the second form is b.php
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<?
echo '
<html>
<head>
<title>updated</title>
</head>
<body>
<h3> click here to go to the home page</h3>
<form method = "post" action= "c.php">
<input type ="HIDDEN" name ="date" value="<?php echo $_GET['date'] ?>">
<input type="submit" name="submit" value =" click">
</form>
</body>
</html>
';
?>
i want the value of the date field to be passed to c.php
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
$date2 does not have the value from the previous field i tried all the ways..someone pls help.....tks
<?
$date2 = $date;
$today = date("d.m.y");
echo "date, $today";
echo " mydate, $date2";
if ($today == $date2)
{
echo '
<html>
<head>
<title>Title here!</title>
</head>
<body>
tks
</body>
</html>
';
}
else
{
echo '
<html>
<head>
<title>Title here!</title>
</head>
<body>
<h3> not correct
</body>
</html>
';
}
?>