Hi,
Could you write me code for reload index.php page using "onload" and sending $x=1 at the same time .
Thanks,
Zurawolf
reload page - please help
Moderator: General Moderators
Re: reload page - please help
May I ask why?
Code: Select all
<?php
if (!$_GET) {
?>
<form name="formName" action="index.php" method="get">
<input type="hidden" value="1" name="x" />
</form>
<script>
document.formName.submit()
</script>
<?php
}
else {
$x = $_GET['x'];
echo $x; // or whatever you want to do with the value
}
?>