Dear group,
My question may be novice. I have seen codes where the isset() is
used to test weather a user's session ($_SESSION[]) is set before
entering a page. A kind of direct access to a page is not possible.
But I tested with the "input type="button" and the clicking of the
event is not happened. Can any one tell me why. The code:
<html>
<body>
<form name='noname' action='test.ph p' method=post>
<input type="button" name='button' value='button'>
</form>
</body>
</html>
<?php
if(isset($_REQU EST['button']))
{
echo "clicked";
}
?>
If I change the <input type='submit'th en it works, like get
submitted and perform the action. But why not with button?
My question may be novice. I have seen codes where the isset() is
used to test weather a user's session ($_SESSION[]) is set before
entering a page. A kind of direct access to a page is not possible.
But I tested with the "input type="button" and the clicking of the
event is not happened. Can any one tell me why. The code:
<html>
<body>
<form name='noname' action='test.ph p' method=post>
<input type="button" name='button' value='button'>
</form>
</body>
</html>
<?php
if(isset($_REQU EST['button']))
{
echo "clicked";
}
?>
If I change the <input type='submit'th en it works, like get
submitted and perform the action. But why not with button?
Comment