Problem with sending a variable(python) while using html

Hansan none
Wed Apr 27 15:03:55 EDT 2005


Hi all.

I am working on a webpage where I use python and html.

When I want to send one variable to a new script/page I use the following 
code:
0) print '''<input type=hidden name="eventid" 
value='''+str(variable_name)+'''>'''

This works fine, the problem occurs when I want to send a variable to a page 
while using a 1)meta refresh or a 2)Href.
1) and 2) works fine as they are but not when I try to send the variable 
with them.

The working version of 1) and 2) could look like
1) print ''<META HTTP-EQUIV="Refresh" CONTENT="0;URL=page xxx">'''
2) print "<a href='page xxx?id=", variable,  "'>", "some text", "</a>"

What I have to do is to combine 0) with 1) so that I can send the variable 
while using a meta refresh
and 0) and 2)

But I no matter how hard I try I cant get it done.

Can any of you experienced users give me some guidance.

I would really appreciate it.

Thanks 





More information about the Python-list mailing list