NICKYSUWANDI
Programmer
i am newbie, i got problem with $_POST, this is my sample of code. When i test this program in my windows XP, theres no problem but when i try put in windows server 2003 (IIS 6.0) and run this code problem appear.Output from this code always return value " no submit".
In file PHP.ini, Register_globals=on.
Theres is something wrong with my setting or my code?
Thanks
<?
if (isset($_POST['Submit'])){
print " submit ";
}else{
print " no submit";
}
?>
<form action="Untitled-1.php" method="post" name="form1" target="_self">
<table width="200" border="0">
<tr>
<td width="66">NAMA</td>
<td width="124"><input name="usr" type="text" id="usr"></td>
</tr>
<tr>
<td>PASSW</td>
<td><input name="pass" type="password" id="pass"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
In file PHP.ini, Register_globals=on.
Theres is something wrong with my setting or my code?
Thanks
<?
if (isset($_POST['Submit'])){
print " submit ";
}else{
print " no submit";
}
?>
<form action="Untitled-1.php" method="post" name="form1" target="_self">
<table width="200" border="0">
<tr>
<td width="66">NAMA</td>
<td width="124"><input name="usr" type="text" id="usr"></td>
</tr>
<tr>
<td>PASSW</td>
<td><input name="pass" type="password" id="pass"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>