Below is an example of the type form I used to process with a python cgi
script. Now I am trying to move everything over to Django.
Question: If I want to save the file to a directory and information about
the submitter (e.g., name and time of submission) directly to a csv file,
how would I do that in Django? Do you need 'newforms' to do that? In the
documentation it seems that if you use newforms you would have to save
everything to a database. Is that really necessary? For some of my forms I
want to save information in a dbase that but probably not for all.
I am getting the hang of templates and authentication in Django but forms
look a bit more complicated.
Thanks,
Vincent
<form action="../cgi/assignments.cgi" method="post"
enctype="multipart/form-data" name="assignments" id="assignments">
<table>
<tr>
<td><strong>Name:</strong></td>
<td>
<select name="NAME">
<option value="John">John</option>
<option value="Sue">Sue</option>
</select>
</td>
</tr>
<tr>
<td><strong>Assignment:</strong></td>
<td><select name="ASSIGNMENT_ID" size="1">
<option value="Assignment 1">Assignment 1</option>
<option value="Assignment 2">Assignment 2</option>
</select>
</td>
</tr>
<tr>
<td><strong>Word document:</strong></td>
<td><input type="file" name="WORDDOC"></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---