lankinator
02-10-2007, 12:52 PM
How can i go about making a page that when i click on the Submit button changes the php code to something else in a different php page?
example:
the code in index.php is:
<script language="JavaScript">
function next() {
clearInterval(si);
document.location="?off";
}
si = setInterval(next,4000);
</script>
then when i click on the submit button in a different page it would change the ?off part in to mess.php?
<script language="JavaScript">
function next() {
clearInterval(si);
document.location="mess.php";
}
si = setInterval(next,4000);
</script>
example:
the code in index.php is:
<script language="JavaScript">
function next() {
clearInterval(si);
document.location="?off";
}
si = setInterval(next,4000);
</script>
then when i click on the submit button in a different page it would change the ?off part in to mess.php?
<script language="JavaScript">
function next() {
clearInterval(si);
document.location="mess.php";
}
si = setInterval(next,4000);
</script>