jeudi 16 avril 2015

Obtain 'post' form URL using .cgi file

File name: http://localhost/PostForm.html



<form method ="post" action="Information.cgi">
<table>
<tr><td>New date: </td><td> <input type ="date" name="DateNew" /></td></tr><br>
<tr><td>Old date: </td><td> <input type ="date" name="OldDate" /></td></tr><br>
</table>
<input type="submit" name = "submitname" value="Add Entry" />
</form>


Is there any way in which I can obtain the file name, which the post form is located on, from the .cgi python file? I want to obtain the file name http://localhost/PostForm.html in the Information.cgi Python file.


Any help is greatly appreciated.


Aucun commentaire:

Enregistrer un commentaire