how to access dropdown list entries in python psp site

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 11
Reputation: R.S.Chourasia is an unknown quantity at this point 
Solved Threads: 0
R.S.Chourasia R.S.Chourasia is offline Offline
Newbie Poster

how to access dropdown list entries in python psp site

 
0
  #1
Mar 9th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2140 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC