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 8042745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:41:17+00:00 2026-06-05T04:41:17+00:00

I have tried several different submit buttons but can not seem to get this

  • 0

I have tried several different submit buttons but can not seem to get this to work properly.

<form id="logForm" action="<?php $retpage; ?>" method="POST" name="logForm">
    <div>
        <table width="400px" border="0" cellpadding="4" cellspacing="4" class="loginform">
            <tr> 
                <td colspan="2">
                </td>
            </tr>
            <tr> 
                <td width="28%">Email:</td>
                <td width="72%">
                    <input name="usr_email" type="text" class="required" id="txtbox" size="25" value="<?php
if(isset($_COOKIE['user_name'])){
            print ($_COOKIE['user_name']);
} else if(isset($_POST['usr_email'])){
            print ($_POST['usr_email']);
} else {
            print '';} ?>">
                </td>
            </tr>
            <tr> 
                <td>Password:</td>
                <td><input name="pwd" type="password" class="required password" id="txtbox" size="25"></td>
            </tr>
            <tr> 
                <td colspan="2">
                    <div align="center">
                        <input name="remember" type="checkbox" id="remember" value="1"> Remember me
                    </div>
                </td>
            </tr>
            <tr> 
                <td colspan="2">
                    <div align="center"> 
                        <p><input name="doLogin" type="image" id="doLogin" value="Login" src="images/login.png" style="vertical-align: middle; height: 30px; width: 66px;" onsubmit="document.logForm.submit(); return false;" /></p>           
                        <p><a href="signup.php">Register Free</a><font color="#FF6600">|</font> <a href="forgot.php">Forgot Password</a> <font color="#FF6600"></font></p>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</form>

When I use the below submit button, it works prefectly, but I want to use an image to submit. The above login button does not work.

<input name="doLogin" type="submit" id="doLogin" value="Login">

Any suggestions?

  • 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-06-05T04:41:19+00:00Added an answer on June 5, 2026 at 4:41 am

    Take out the onsubmit attribute and just use:

    <input type="image" src="foo.png" />
    

    This will submit the form when clicked.

    Fiddle: http://jsfiddle.net/jonathansampson/q3SN8/

    Additionally, you’re not printing your action:

    action="<?php $retpage; ?>" // should be <?php echo $retpage; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried this several different ways but can't seem to figure out how
I have tried several different ways to get a simple DataTemplate example to work.
I have tried several different examples but I cannot get any video to show.
Here is what I have. I have tried several things but I can't figure
I have tried several different ways, but it seems that it never sends the
I can not get my application to write to the sdcard. I have tried
I have tried several things so far, but I haven't had much luck yet.
I am stumped by this one. I have tried several angles and some come
I have tried this question on the site of Titanium and several tweets to
Have tried to find solutions for this and can't really come up with anything.

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.