Problem with sending a variable(python) while using html

Hal Rosser hmrosser at bellsouth.net
Wed Apr 27 22:38:04 EDT 2005


append "&eventid=str(variable_name)"  to the url in the link
The hidden field is not sent unless the form is submitted.
If you use the link - you send the data appended to the url

"Hansan" <none> wrote in message
news:426ff886$0$13746$ba624c82 at nntp03.dk.telia.net...
> Hi.
>
> Sorry forgot to post a "non-working" example
>
> That could be
> print "<a href=script.py?id=", variable,  "'>", "some text"  <input
> type=hidden name="eventid" value='''+str(variable_name)+'''>'''</a>"
>
> I know that it isnt very creative, but I am having a hard time getting
html
> to work together with python.
>
> When the link "some text" is clicked I want to send both the first
variable
> called variable and the second one(variable_name) to the script
(script.py)





More information about the Python-list mailing list