Reply to Checking if 'button' set with isset() (beginner)

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация