944,138 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 2630
  • Python RSS
Mar 9th, 2007
0

how to access dropdown list entries in python psp site

Expand Post »
Hi,
I am making a site in which I have to run an sql query on the oracle database. I have to take the condition for query from the selected entries in dropdown list i.e. the condition is based on the entris in the dropdown list entries.
I am using windows XP sp2,python 2.4, and mozilla firefox.
here is a sample code of my main code:-

<%

%>
<html>
<body>
<form id="myform">
<select id="myselect" name="myselect">
<option value="one" selected> ONE </option>
<option value="two"> TWO </option>
<option value="three"> THREE </option>
<option value="four"> FOUR </option>
<option value="five"> FIVE </option>
<option value="six"> SIX </option>
</select>
</form>
</body>
</html>
<%
import os
from mod_python import util
from mod_python import psp

_REQUEST = util.FieldStorage(req)
sql = _REQUEST['myselect']
req.write("%s"%sql)
%>

Please help me and Thank you in advence
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
R.S.Chourasia is offline Offline
11 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Radiobutton text placement
Next Thread in Python Forum Timeline: im totaly new for programing, need some help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC