hi this is
testing1.html
Quote:
<html>
<body>
<SCRIPT language="JavaScript">
function setMode()
{
document.form1.var1.value='D';
document.form1.submit();
}
</script>
<form ACTION = "testing1.php" METHOD = post NAME = "form1" >
<input name = "var1" type = "hidden" value = "B">
<input type ="button" onClick = "setMode();" value = "Enter Information">
</form>
</body>
</html>
|
and this is
testing1.php
Quote:
<?php
echo($var1); or echo($_GET["var1"]);
?>
|
Now When i run on my local host this runs fine but when i run on my godaddy server the output is nill, i dont' know why
one thing more i have tested by simly echoing the value of hidden variable var
i.e without this
Quote:
|
document.form1.var1.value='D';
|
even then i am not getting the output on godaddy server