I want to enable or disable the buttons from page2.php
from page1.php
. when i click on the submit button from page1.php
it should ENABLE/DISABLE
button in the page2.php
without redirecting to page2.php
.
here am trying to send value from page1.php
to page2.php
using javascript. but unable to get data.
here is what i have tried.
page1.php
<html>
<head>
<script type="text/javascript">
function enable(){
var enable="enable";
window.location = "page2.php?temp=" + enable;
alert(enable);
}
</script>
</head>
<body>
click button to ebable or disable
<input type="submit" name="submit" id="submit" value="enable"onclick="enable();">
</body>
</html>
and this is my page2.php
<html>
<head>
<script type="text/javascript">
function enable(){
var temp=Request.querystring["temp"];
alert(temp);
}
</script>
</head>
<body>
click button to ebable or disable
<br>
<input type="submit" name="submit" id="submit" value="enable" onclick="enable()" >
</body>
</html>
can anyone suggest how to get it.?