in reply to WWW:Mechanize (input not in form) problem

That's not an error, it's a warning generated by HTML::Form, indicating the HTML is not correct; it has found and INDEX element that is not inside a FORM element.

Abigail

Replies are listed 'Best First'.
Re: Re: WWW:Mechanize (input not in form) problem
by atnonis (Monk) on May 07, 2003 at 15:15 UTC
    i still can't understand what is the problem. this is my html form code and i don't see anything "funny"
    <form method="POST" enctype="application/x-www-form-urlencoded" action +="myplace.pl"> <div align="right"> <div align="left"> Welcome to "Your Place"! </div> <br> <font size="2" color="red"><b><TMPL_VAR NAME="error_msg"></b></font> <br> <input type="text" name="username_entered" value=""><br>username<br> <input type="password" name="password_entered" value=""><br>password<b +r><br> <font size="1"> remember me &gt;</font><input type="checkbox" name="_c +heckcookie" value=""> <input type="submit" name="login" value="Log in"> </div> </form>
    can you figure out what is wrong!?

    Antonis!

      Adding to merlyn's reply, try running the complete page through an HTML validator, which should be able to tell you where the exact error is at.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

        As far as an HTML validator, take a look at HTML::Lint, also written by the same briiiiiiiilliant programmer who did WWW::Mechanize.

        xoxo,
        Andy