Hello
Im having a problem getting a $_GET['submit'] to unsetting proberly, is there any other way to clear thise variable so the page does not redo x event when refreshing.
p.s. i dont want to use header(..)
Hello
Im having a problem getting a $_GET['submit'] to unsetting proberly, is there any other way to clear thise variable so the page does not redo x event when refreshing.
p.s. i dont want to use header(..)
if you hit refresh, the browser recalls the last action made, so of course it's going to do the last thing again...
what's the problem with using header()... just forward to another page where a refresh won't hurt anything and go from there
lol no kidding, the var $GET['submit'] is ofcause set by a form, im checking on
$GET['submit'] == or != X, it does not really matter, what matter is that using
unset($_GET['submit']); does not work.
i do not wish to you header(..) because something else not to work and im is a crappy solution
2nd Q, on this particular server i have to use $POST[] or $GET[], does anyne know the reason for that? im use to just using the names used in the html forms.
no need to get snotty bro... not a good way to get help
it's a simple action/reaction... you're problem, that is...
$_GET is when you send info thru the querystring, either in a link, or by method="get"...
and $_POST is when you method="post" a form
if you don't want to use header, which is the easiest solution... i'd like to see what the problems are with that... errors, what?
you can use session ($_SESSION) variables... if the form is submitted, set variable = something, doesn't matter, then if it's refreshed, it won't do the task if the session variable is = to that something as noted before
i was not being snotty, sis. you just give answer i already know .
anyway the problem is not PHP/unset as such, its the fact that it's the user that refresh the page resending the damn info.
the reason for $GET/$POST have to be some server side variable thats se differently on this server.
i realize it's a refresh problem... that's why i suggested using a session variable...
and i explained the $GET, $POST to you... if you HAVE to use those, then register_globals is set to OFF, which is good anyway...
you need to edit the php.ini to get that taken care of and if it's a hosted server, third party, you'll likely have no control over it