•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 391,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,625 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 649 | Replies: 0
![]() |
Hi,
I'm working on a OOP school project, and I'm trying to add a web interface to it; however, my experience working with html forms is limited. Anyways, I'm trying to set up a user login, where the user enters some info onto a form. I want to pull the info out and send it to some modules I've already written. If the user validates then pull up the next webpage. I wrote some stuff, but I don't really understand how to tell the cgi module how to open the next page if the info is good, or how to create multiple response page depending on the info contained on the forms. None of this has to be deployed.
Here's what i've written so far:
Thanx in advance for any help
I'm working on a OOP school project, and I'm trying to add a web interface to it; however, my experience working with html forms is limited. Anyways, I'm trying to set up a user login, where the user enters some info onto a form. I want to pull the info out and send it to some modules I've already written. If the user validates then pull up the next webpage. I wrote some stuff, but I don't really understand how to tell the cgi module how to open the next page if the info is good, or how to create multiple response page depending on the info contained on the forms. None of this has to be deployed.
Here's what i've written so far:
python Syntax (Toggle Plain Text)
[inlinecode] import cgi formStorage = cgi.FieldStorage( ) print "Content-type: text/html" [/inlinecode]
html Syntax (Toggle Plain Text)
[inlinecode] <html> <title>System Login</title> <body> <form method=POST action="loginUI.py"> <table width="97%" border="0"> <tr> <td width="82%" height="23"> </td> <td width="18%"><img src="python-powered-w-100x40.png" width="109" height="42"></td> </tr> </table> <table width="277%" height="244" border="0"> <tr> <td height="104"><p> </p> <p><strong><font size="+3">Please Login___________________</font></strong></p></td> </tr> <tr> <td><table> <tr> <th>User Name <td><input type=text name=username> <tr> <th>Password <td> <input type=text name=password> </table> <input type=submit value="Submit", name=action></td> </tr> <tr> <td> </td> </tr> </table> <p> </form> </body> </html> [/inlinecode]
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
advertising blog browser c c++ code coding community competition data design development domains firefox gdata google intel internet java legal linux marketing microsoft microsystems mobile applications mozilla multimedia networking news online php planning platform privacy programming report research rss search security software standards sun tutorials video w3c web web development xml yahoo
- Shell Programming (Shell Scripting)
- web programming/design as career profile (IT Careers and Business)
- Please review my programming and web design tutorials site (Website Reviews)
- Creative Web Programming / Developer for a Social Network (Web Development Job Offers)
- Optimum Online Web Hosting. (Networking Hardware Configuration)
- Where to get started with Web Programming (IT Careers and Business)
- ColdFusion 5 Web Application Construction Kit (ColdFusion)
- PC Mod Kingdom 3.5 (Geeks' Lounge)
Other Threads in the Python Forum
- Previous Thread: simple random function
- Next Thread: Tkinter Image Problem


Linear Mode