Re: Problem combining python code and html

2005-05-12 Thread Hansan
Hi all and thanks for the help, With help from Fredrik I got the code working, I will also look into the links you guys have suggested. Hope you all are feeling well and happy. has [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hansan wrote: And is there a nother way to combine

Re: Problem combining python code and html

2005-05-11 Thread Hansan
problem is ? Thanks for your time Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hansan wrote: I used the same code they use for making the two display functions and the same template for the html form. I even tried using the form template they use too

Re: Problem with sending a variable(python) while using html

2005-04-28 Thread Hansan
Thanks for you help, it is working now :D Take care Kent Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hansan wrote: 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

Problem with sending a variable(python) while using html

2005-04-27 Thread Hansan
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

Re: Problem with sending a variable(python) while using html

2005-04-27 Thread Hansan
. 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) Hope that makes some sense :) Jaime Wyant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 4/27/05, Hansan [EMAIL PROTECTED] wrote: Hi

Re: html tags and python

2005-03-28 Thread Hansan
Hi and thanks for your replies. Will one still tell me how I use the timedate modul with my form print '''form action='insertevent.py'br pDay (1-31):br INPUT type=text NAME=day pMonth (1-12):br INPUT type=text NAME=month print '''pinput type=submit value='Submit'/p/form'''

Re: html tags and python

2005-03-28 Thread Hansan
I figured it out with a lot of if else statements, but still if one have time to explain how the time/date modul works with forms, I will be more than happy to lear. Thanks Hansan none wrote in message news:[EMAIL PROTECTED] Hi and thanks for your replies. Will one still tell me how I use

Re: html tags and python

2005-03-26 Thread Hansan
thing :) Thanks Tim Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hansan none wrote: Hi all I am making something for my webpage Where the user can choose a month: I have made that with a dropdown box. select option name = 1 value=1January option name

Re: html tags and python

2005-03-26 Thread Hansan
Hi and thanks for the replies. It is starting to make a little sense. But its still not that clear... If I import the DateTime or install and import the mx package. Where should I then change something in my code? I guess that I will have to see if the entered number is valid when the user

html tags and python

2005-03-25 Thread Hansan
Hi all I am making something for my webpage Where the user can choose a month: I have made that with a dropdown box. select option name = 1 value=1January option name = 2 value=2February option name = 3 value=3March option name = 4 value=4April option

Re: html tags and python

2005-03-25 Thread Hansan
Thanks. Do you know what I should google after, which key words ? regards... Kane [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I understand what you are asking then Python CGI are a poor solution. It would be easy to have one page ask for the month, click submit, then