1

<form method="post" action="/user/user_login_prov.jsp">
    <table id="userpass" class="separator">
        <tr class="gap"><th>&nbsp;</th><td>&nbsp;</td></tr>
            <script type="text/javascript">
            //<![CDATA[
                this.onloads.push(function() {
                    redirectToPeerZd('');
                    document.getElementById('username').focus();
                });
            //]]>
            </script>
            <tr><th>User Name</th><td><input class="login_input" type="text" name="username" id="username" size="256" maxLength="256" AUTOCOMPLETE=OFF /></td></tr>
            <tr><th>Password</th><td><input class="login_input" type="password" name="password" id="password" size="64" maxLength="64" AUTOCOMPLETE=OFF /></td></tr>
            <tr><th></th><td align="right">
                <input type="submit" name="ok" value="Log In" />
                <!-- or <a href="javascript:history.back();">&lt; Back</a> -->
            </td></tr>
            <!--<tr class="gap"><th>&nbsp;</th><td>&nbsp;</td></tr>-->
    </table>
</form>

The HTML given above is my form and I have to assign a value to the <input> controls inside the Form -> Table in python mechanize.

How do I do it ?

0 Answers0