Created
October 19, 2011 23:10
-
-
Save anonymous/1299957 to your computer and use it in GitHub Desktop.
usman - pastebin.com/1qzEnZiD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['submit1'])) { | |
$var1=$_POST['submit1'] | |
echo "it works1"; | |
} | |
echo " "; | |
if(isset($_POST['submit2'])) { | |
echo "it works2"; | |
} | |
echo " "; | |
if(isset($_POST['submit3'])) { | |
echo "it works3"; | |
} | |
?> | |
<html> | |
<form action="form.php" method="post"> | |
<input type="submit" id="submit1" name="submit1" value="Click Me1" onclick="document.getElementbyId("submit1").value=itworks1"> | |
<br /> | |
<input type="submit" id="submit2" name="submit2" value="Click Me2" onclick="document.getElementbyId("submit2").value=itworks2"> | |
<br /> | |
<input type="submit" id="submit3" name="submit3" value="Click Me3" onclick="document.getElementbyId("submit3").value=itworks3"> | |
<br /> | |
</form> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment