higherGround574 0 Newbie Poster

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:

import cgi
formStorage = cgi.FieldStorage( )
print "Content-type: text/html"

<html>
<title>System Login</title>
<body>
<form method=POST  action="loginUI.py">
  <table width="97%" border="0">
    <tr>
      <td width="82%" height="23">&nbsp;</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>&nbsp;</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>&nbsp;</td>
    </tr>
  </table>

  <p>&nbsp; 
</form>
</body>
</html>

Thanx in advance for any help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.