Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6994609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:54:51+00:00 2026-05-27T19:54:51+00:00

i want to login ( stable ) with perl to a web site like

  • 0

i want to login ( stable ) with perl to a web site like http://site/signin/index.php.
this page have form and submit without name.
how can i login ?
this is a example code to login:

my $mech = WWW::Mechanize->new();
$mech -> cookie_jar(HTTP::Cookies->new());
$mech -> get($login_url);
$mech -> form_name('theform');
$mech -> field ('username' => $username);
$mech -> field ('password' => $password);
$mech -> click ('log in');
print $mech-> content();

this is my form

<form method="post" action="">
<table id="regform" cellspacing="5">
<tr>
<td class="regparam">email:</td>
<td><input type="text" name="email" value="" tabindex="1" maxlength="100" style="font-family: Tahoma; font-size: 10pt;  font-weight: bold; border: 1px solid #9AD7F8; background-color: #ffffff" class="reginp" /></td>
</tr>
<tr>
<td class="regparam">password:</td>
<td><input type="password" name="password" value="" tabindex="2" maxlength="100" style="font-family: Tahoma; font-size: 10pt;  font-weight: bold; border: 1px solid #9AD7F8; background-color: #ffffff"  class="keyboardInput" /></td>
</tr>
<tr>
<td></td>
<td valign="middle">
<button type="submit" style="font-weight:bold; tabindex="4" class="subm-posts">login</button>
<label style="margin:0px; padding:0px; margin-left:10px; margin-top:7px; float:left; clear:none;">
<input type="checkbox" name="rememberme" value="1"  tabindex="3" />
<span style="padding:2px; padding-left:5px;">remember me</span>
</label>
</td>
</tr>
</table>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:54:51+00:00Added an answer on May 27, 2026 at 7:54 pm

    Instead of referring to the form by name, you can refer to it by number, i.e. where it appears in the form:

    $mech->form_number( 1 );
    

    Form numbers start from one.

    Similarly, as there is only one button in the form, you can just use

    $mech->click( );
    

    and that will submit the form as it will click the button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a login form on my home page. In index.cshtml I have this:
on my web site I want to have login/registration form in modal window done
i have this chatbox, and when users login i want it to send a
I want to place a login inline-form in a twitter navbar. I have done
I want to login to a site like stackoverflow or codeproject from a server.
I have a blog application that I want a login form in a sidebar.
I have this button which submits the login form: <input class=btn btn-large btn-success id=login-button
For the majority of my site, I want to require login. But for two
I want to test the login() action in my UsersController.php <?php class UsersController extends
I want to integrate facebook login into my web application developed using Spring MVC.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.