Martin Mrazek wrote:
Hi,
I have a HTML form and need to generate the action-string (what to do
after submission) from values of textfields in the form. It means
something like
<form method="post" action=whatToDo.value>
<input name="whatToDo" value="http:\www.myPage.com\cgi-bin\DoDefault">
...
</form>
You could do it with JavaScript, but this would not work for anyone
with JavaScript disabled or not supported, however this was somewhat
discussed on www-html last February, in the thread "Multiple actions for
forms" [1]. The first response to this, by Mark Birbeck [2], mentioned
that XForms will be able to fulfill this functionality. However, until
XForms is widely implemented in the core functionality (ie. not
requiring a plugin that most people don't have) in the vast majority of,
at least, the popular UAs, then you'll have you use server side processing.
[1]
http://lists.w3.org/Archives/Public/...4Feb/0004.html
[2]
http://lists.w3.org/Archives/Public/...4Feb/0005.html
--
Lachlan Hunt
http://www.lachy.id.au/ la**********@lachy.id.au.update.virus.scanners
Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!