| | |
how to access dropdown list entries in python psp site
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Feb 2007
Posts: 11
Reputation:
Solved Threads: 0
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
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
- Dynamic dropdown list (ASP.NET)
- Dropdown list Last value (ASP.NET)
- hi problem in dropdown list (ASP)
- Retrieving Multiple Columns into Dropdown List (ASP.NET)
- DropDown List (VB.NET)
- Feeding a value in a dropdown list to another dropdown list (PHP)
Other Threads in the Python Forum
- Previous Thread: Need help with caesar cipher
- Next Thread: im totaly new for programing, need some help
Views: 2140 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Python
alarm aliased application beginner calculator casino character code command cursor cx-freeze definedlines development dictionary dynamic error event examples excel exe file filename float format ftp function google graphics gui homework ideas import input java launcher line linux list lists logging loop matching microphone mouse movingimageswithpygame newb number numbers obexftp output parsing path permissions phonebook port prime program programming projects py2exe pygame pygtk pyqt pysimplewizard python random recursion recursive refresh return reverse scrolledtext shebang simple skinning sprite ssh statistics string strings table terminal text thread threading time tkinter tlapse tricks tuple tutorial ubuntu unicode urllib urllib2 valueerror variable voip windows wxpython





