You are here: Hidden Form Help « PHP « IT news, forums, messages
Hidden Form Help

Posted by Alnisa Allgood on 10/12/05 13:44

Hi-

I'm in a situation where I'm required to deal with a hidden form. The
background details are exhausting, but the gist is: one form is
auto-generated and lacks proper formatting. It was part of an open
source package that DID NOT allow templating. So to keep using the
application engine, but provide formatting, I created a CSS class to
hide the unformatted form while displaying the formatted form.

When submitting data to the database this doesn't seem to cause any
issues. It accepts data based on the fieldvalues and ids. But when
retrieving data to repopulate the form, what happens is that the
hidden form gets the values and the displayed form does not.

http://nahic.ucsf.edu/phpESP/survey.php
login= Wisconsin

Basically, if you complete the required field (state), fill out some
random data, hit save, then select "resume" from the info page
provided. You'll get back an empty form. But if you look at the code
you'll see that the hidden form has the values.

So I have a few questions:

1) Is there anyway to echo data from one field to the next, especially
if the field (name or id) are exactly the same?? (i.e. field=state
value=Wisconsin; if the field state is then repeated somewhere else on
the page, can the value, Wisconsin, also be automatically repeated.

2) If yes, to the above can PHP do this and how? or is this something
requiring Javascript or some other coding.

 

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

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