|
Posted by edfialk on 10/10/85 11:50
Hi, want I would like is an original default value for my textboxes,
but once the user changes these values to something else, I would like
for them to stay that way after the form is submitted. Once the first
page is loaded (.php, with no inherited values), everything works
great. But, once the user has typed in values and submitted, those
values are forever stuck at what was originally typed in (by stuck, I
mean after submitting again, the variables dont change, regardless of
what's inside the textbox).
some example code:
$mapTime = $_GET["mapTime"];
if (isset($mapTime))
echo "document.form1.mapTime.value= '".$mapTime."';\n";
Map Time: <input type="text" name="mapTime" value="2006-03-01">
site: niceguy.wustl.edu
Feel free to play around, the important part is changing textboxes,
update map, and then notice even if you change boxes, the url for
mapTime= will remain whatever you typed in to begin with.
any other information anyone would need to help me, I'd be happy to
provide.
Thanks!
-Ed
Navigation:
[Reply to this message]
|