Thanks for your prompt response.
I want to get the value form user input/selected option
<select name='query' id='query'>
  <option value='a'>a</option>
  <option value='b'>b</option>
  # How to get user selected option?
  # what I want to do ....
  # if option == a,  get data from a xml file... where the childNode is "a"
  # i.e. select different option will get different data from a xml file
  # no form is called
 <input type="hidden" id="selected" name="selected" value="<%= #data from xml %>">

Thanks for your help and advise.

--- On Sun, 31/1/10, Christoph Zwerschke <cito@online.de> wrote:

From: Christoph Zwerschke <cito@online.de>
Subject: Re: [Webware-discuss] Can psp "read" the html field value?
To: "Discussion of Webware for Python including feedback and proposals." <webware-discuss@lists.sourceforge.net>
Date: Sunday, 31 January, 2010, 11:56 PM

Am 31.01.2010 11:01 schrieb HS WAI:
> I am new to python server pages.
> Can psp "read" the html field value
> ...
> <input type="hidden" id="selected" name="selected" value="0">
> <%
> # Read/Get the above hidden field value
> # Perform some task
> #re-write the hidden field value
> %>

I don't understand exactly what you want, but maybe this?

<% compute hidden_value %>
<input type="hidden" id="selected" name="selected"
     value="<%= hidden_value%>">

Or do you want to get the hidden value from a submitted form? You get it
like all other form fields with req.field('name_of_field').

-- Christoph

The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
Webware-discuss mailing list

Yahoo! Toolbar is now powered with Free Anti-Virus and Anti-Adware Software. Download Yahoo! Toolbar now!