Clearing away the values...

Hi, anyone knows how to clear away values after i accessed the page.

http://localhost/example/edit_profile.php?name=Jon&add=the+world&email=abc@def.com&updateBtn=Update

I don't wan this anymore.
How can I make it just http://localhost/example/edit_profile.php again??

-Rgds-
G-ForceAsked:
Who is Participating?
 
carchitectConnect With a Mentor Commented:
hi you are sending values on <a href="">edit profile</a>
which is bad practise instead you use hidden values or direct form variables...
then no need to hide them again they will not appear in URL...
regards
0
 
laurlyCommented:
are you using post or get in your form?  try using post insted.

laurly
0
 
massDerCommented:
you could always change the header to change the location.
Header("Location: index.php");
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AmeristCommented:
Instead of passing your variables through the link, pass them in a form with hidden fields, like this


<FORM METHOD="POST" ACTION="edit_profile.php">
<INPUT TYPE="hidden" NAME="name" VALUE="Jon">
<INPUT TYPE="hidden" NAME="add" VALUE="the+world">
<INPUT TYPE="hidden" NAME="email" VALUE="abc@def.com">
<INPUT TYPE="image" src="/images/submitbutton.gif" border="0" name="updateBtn" id="gifSubmit" value="Update">
</FORM>

Then in the URL you won't see the variables anymore.
0
 
KC_SpeedballCommented:
I think his problem is that anyone has data from him in this way an know hi want this data to be deleted. Thats rarely possible. You can try whether the data is change when you leave the name and change all other variables, but if this do not work there is noch chance to clear that data in database.

http://localhost/example/edit_profile.php?name=Jon&add=0&email=0&updateBtn=Update

0
 
Ray_AdamsCommented:
unset(valuename);
0
All Courses

From novice to tech pro — start learning today.