Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(ASK) PHP
#3
ikut bantu jawab yak
mungkin begini

PHP Code:
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label> <input type="submit" name="button" id="button" value="login" /> </label> <label> <input type="submit" name="button2" id="button2" value="sign" /> </label> </form>

<?php
$login=$_POST["login"];
$sign=$_POST["sign"];
if isset($login){
header('Location: http://localhost/login.php');

}
if isset($sign){
header('Location: http://localhost/sign.php');
}
?>


semoga membantu :)
Reply


Messages In This Thread
(ASK) PHP - by bie_van - 12-06-2011, 01:26 PM
RE: (ASK) PHP - by d0ey_Grunch - 12-19-2011, 12:01 AM
RE: (ASK) PHP - by greendcoded - 12-22-2011, 01:06 AM
RE: (ASK) PHP - by morefast - 12-23-2011, 12:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)