simple form code.
Posted: Wed Jan 30, 2008 2:26 pm
dear all,
Novice here and having problems with simple code. Please help
here is my code
I donot get a success message even when I click the button.
Thanks in advance,
prasad.
GOT the solution...replaced POST by GET
Novice here and having problems with simple code. Please help
here is my code
Code: Select all
<form name="form1" action="something.php">
<input type="submit" name="mybutton" value="submit" />
</form>
<?php
if($_POST["mybutton"] == "submit")
echo "Success";
else
echo "Failure";
?>Thanks in advance,
prasad.
GOT the solution...replaced POST by GET