Page 1 of 1
How do you delete text in inputboxes
Posted: Thu Jan 26, 2006 5:01 pm
by jaymoore_299
After I fill out an inputbox and press submit, when I press back or even reload in firefox, the forms continue to have the same values filled out previously. Is there a setting for inputboxes that clears this?
Posted: Thu Jan 26, 2006 5:08 pm
by feyd
that's apart of your browser's caching. The page likely isn't even pulled from the server to render the page.
Posted: Thu Jan 26, 2006 5:09 pm
by raghavan20
Usually that is what programmers want to do because that avoids users from inputting information again but that does not happen normally.
for clarity, here is an example....
Usually programmers have to code like this to retain the values filled in by an user
Code: Select all
<form method = 'post'>
<input type = 'text' name = 'sometext' value = '<?php echo isset($_POST['sometext'])? "" : $_POST['sometext']; ?> ' />
</form>