You are here: php textbox GET values become unchangeable « All PHP « IT news, forums, messages
php textbox GET values become unchangeable

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация