I have some problem on my scripts.
I have a page which is HTML and have a form
<form name="form1" method="post" target="_self" action="http://not and the same computer/new.php">
Note that the form will go to other computer and not on the same computer.
</form>
when going to the new.php, I have set cookie with no expire time, since I just don't want people to click reload and reload again.
So, I just want to end this cookie after they close the browser.
setcookie("mycookie","set");
When I start this html on a new page, and I can run the script smooth, when I click the reload, I can see that the cookie is set and I need to exit the browser and open a new browser such that I can run this php again.
However, the problem is, when I insert this HTML in a frame ( I have a top, main and bottom frames), I found that I can still run the script and execute the php function. But when I click reload, I have the script is run again, that means I run this script twice, if I reload and reload, I will run many times of this script.
I don't know what's the problem and I think my logic in the scripts is right. Is that the problem of loading to other URL?
Gilbert Ng