Re: how to get select label?
I build web application. So I use CGI. I need to show select text in the html page. Now I can only display select value such as '001'. But I need to display its text 'AAA'. LLI -- http://mail.python.org/mailman/listinfo/python-list
Re: how to get select label?
Sorry , I forget to say that. I use CGI, HTML and python. LLI -- http://mail.python.org/mailman/listinfo/python-list
how to get select label?
Hi Guys, I built a select in a form. My select is: print '' print 'ALL' print 'AAA' print 'BBB' print '' I can get which item value users select. For example users select item 2, I can get its value "001". But now I want to get item label "AAA", not its value "001". How I can do this. I use python to code. Any help is appricated. LLI -- http://mail.python.org/mailman/listinfo/python-list
Re: how to put form and display its result(data from database) on the same window?
Thank you Peter. I will read it. LLI -- http://mail.python.org/mailman/listinfo/python-list
Re: how to put form and display its result(data from database) on the same window?
Hi Peter, Could you give me detailed information about your idea. Thanks, Laya -- http://mail.python.org/mailman/listinfo/python-list
how to put form and display its result(data from database) on the same window?
Hi Guys, I have designed a web application. In its one window I put a form. User can click submit button of this form to run a pathon script to get data from database. Then User get a new window which display the result. Now I want to put the form and display data on the same window. How I can do this? If I use frameset, I need to put form in a html file and put data in a table in scond html file. How I can do this? Any help is appreciated. LLI -- http://mail.python.org/mailman/listinfo/python-list
Re: how to handle two forms in cgi?
Thank you, fuzzyman. LLi -- http://mail.python.org/mailman/listinfo/python-list
Re: how to handle two forms in cgi?
Steve, You are right. I just test it. If users login application sucessfully, then they can see hidden values by view source. Next time they can use URL path ? key = value to open the second form. I will use session to handle it. By the way, do you write a book "Python Web Programming"? It is on my desk. It's a great book. Thanks, Laya -- http://mail.python.org/mailman/listinfo/python-list
Re: how to handle two forms in cgi?
Hi Steve, Thank you for your information. Your idea is helpful for me. By the way, could I use "hiden" to handle this case? Laya -- http://mail.python.org/mailman/listinfo/python-list
Re: how to handle two forms in cgi?
Hi Dan, Sure. You are right. When I correct this according to your idea, it works now. Thank you very much. But I have second problem. When users run second form, other people can see adress in users' browers and know how to run the second form, so they don't need to run login form. How I can handle this case? How I can let users run login form firstly, then they can run second form(search form)? By the way I use python to write cgi. Any help is appriciated! -- http://mail.python.org/mailman/listinfo/python-list
how to handle two forms in cgi?
Hi Guys, I am a new cgi programmer. Now I need to design a web application: 1. first, user login by their username and password in a form (login form). When users click submit button it connect to database and check user name and password in a table. If it match in a table, form1.py should show second form for users in their browser. I have finish this form. It works well. 2. second form (search form) which contain last name, and first name which users input data. When user click submit button, it connect database and search in a table. And the search result need to show in a list or table in users' browser. My question is: How let these two form works together? I try to use two codes for these two forms, e.g. Login.py for login form and search.py for search form. But when user input data in search form and click its submit button, it just comes back to login form. Second form doesn't work. Any help is appriciated! Thanks, LLI -- http://mail.python.org/mailman/listinfo/python-list