hi all,
i need to get all the data in the list (which is posted in the form) and store it, separating each list item with comma's. Its really clear in the code...this is what ive tried so far..it doesnt compile and it seems to complain about this line of code photos = form["photolist"]...thanks for any help
html form--->add.html
<form name="listadd" method=post action=addDo.cgi>
<select name="photolist" size="9" style="width: 500; height: 50"></select>
<input type="submit">
</form>
python cgi script--->addDo.cgi
import cgitb; cgitb.enable()
import cgi
import sys
form = cgi.FieldStorage()
photos = form["photolist"]
i=0
for photo in photos:
i = i + 1
finalPhoto = finalPhoto + "," + photo[i]