You are here: Re: How to retain user input in a form file field ? « HTML « IT news, forums, messages
Re: How to retain user input in a form file field ?

Posted by Jukka K. Korpela on 06/10/06 07:35

Yohan N. Leder <ynleder@nspark.org> scripsit:

>> Periodically discard old temporary files instead.
>
> Even if better for client side, it sounds like less smart on server
> one.

In HTML forms, the server needs to be smart, since HTML forms are so
stupid^H^H^H^H^H^Hsimple by design.

> Well, do you confirm or not that an hidden field containing a
> client path will send data as a file field does ?

What are you talking about? Weren't you explained that such ideas don't
work? Surely a hidden field containing a string (that you call "client
path") will send exactly that string.

If you included the _content_ of the submitted file (suitably encoded) into
a hidden field, you could expect to get it back (as encoded, so you would
first need to decode it). But this would be rather pointless, since it is
simpler and surely more efficient to store data on the server and retain an
_identifier_ for it.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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