<?php
echo '<form action="#" method="post">
<input type="text" name="txt" />
</form> ';
$A = $HTTP_COOKIE_VARS['txt'] = $_POST['txt'];
if (isset($A))
{
echo "welcom $A";
}
else {echo"sorry";}
?>
<?php
$int_value1 = 13;
$int_value2 = 45;
$int_value3 = $int_value1 * $int_value2;
echo "the product of $int_value1 * $int_value2<br> =".$int_value3;
?>
echo '<form action="#" method="post">
<input type="text" name="txt" />
</form> ';
$A = $HTTP_COOKIE_VARS['txt'] = $_POST['txt'];
if (isset($A))
{
echo "welcom $A";
}
else {echo"sorry";}
?>
<?php
$int_value1 = 13;
$int_value2 = 45;
$int_value3 = $int_value1 * $int_value2;
echo "the product of $int_value1 * $int_value2<br> =".$int_value3;
?>
No comments:
Post a Comment