Problem with sending a variable(python) while using html
Jaime Wyant
programmer.py at gmail.com
Wed Apr 27 15:30:46 EDT 2005
On 4/27/05, Hansan <none at bag.python.org> wrote:
> 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 exactly does the "non-working" version look like? Perhaps a
snippet of broken code would be helpful here?
jw
More information about the Python-list
mailing list