- From: George Zhang <gyzhang63@hotmail.com>
- Date: Tue, 28 May 2002 22:01:03 -0400
- To: www-html@w3.org
Hi All,
I am trying to write a WEB client program with Perl to simulate filling-out
a form. The source of the form is attached after my questions. I am
confused by the form statements. In the form statement, there are two
"name"s and two "methods". I have read the HTML 4.01 spec, but it does not
say any thing about this type of forms. Could someone please help me
understanding this form, and more importantly, how to simulate filling this
form(s)?
Thanks a lot for your help.
George zhang
======================================================================
Source for HTML form:
<form method="POST" name="userForm"
action="/servlet/com.celera.web.cds.servlets.PortalLogin" method="POST"
name="passwordForm" onsubmit="return checkUserName()">
<table width="380" border="0" cellspacing="0" cellpadding="0"
bgcolor="#C0CACF" align="center" style="border: 1px solid #000000;">
<tr>
<td colspan="4" bgcolor="#000000"><IMG src="/cmnImages/spacer.gif"
width="1" height="1"></td>
</tr>
<tr>
<td colspan="4"><span class="normal"> </span></td>
</tr>
<input type="Hidden" name="userPassword" value="">
<tr>
<td align="right"><span class="logincds">User ID</span></td>
<td><span class="logincds">: </span></td>
<td align="left"><input class="input" TYPE="Text" NAME="uid" SIZE="25"
onblur="toPasswordField()"></td>
<td><span class="normal"> </span></td>
</tr>
</form>
<form
action="/servlet/com.celera.web.cds.servlets.PortalLogin" method="POST"
name="passwordForm" onsubmit="return checkUserName()">
<input type="Hidden" name="uid" value=""
onblur="toPasswordField()">
<tr>
<td align="right"><span class="logincds">Password</span></td>
<td><span class="logincds">: </span></td>
<td align="left"><input class="input" type="Password"
name="userPassword" size="15">
<input type="image" src="/cmnImages/go.gif" width="33"
height="15" border="0"></td>
<td><span class="normal"> </span></td>
</tr>
<tr class="small">
<td colspan="4"><span class="normal"> </span></td>
</tr>
<tr class="small">
<td colspan="4" bgcolor="#000000"><IMG src="/cmnImages/spacer.gif"
width="1" height="1"></td>
</tr></form>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Received on Tuesday, 28 May 2002 22:01:34 UTC