Posted by sathyashrayan on 03/23/07 15:42
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.php' method=post>
<input type="button" name='button' value='button'>
</form>
</body>
</html>
<?php
if(isset($_REQUEST['button']))
{
echo "clicked";
}
?>
If I change the <input type='submit'> then it works, like get
submitted and perform the action. But why not with button?
[Back to original message]
|