Jump to content

login page Problem ??? Look Here


rajmohan

Recommended Posts

Hai guys

i am facing login page problem

situation is username, password and image

<form name="form1" id="form1" method="post" action=""><table width="200" border="0" align="center" cellpadding="0" cellspacing="6">
          <tr>
            <td width="85" class="fontPink style2">Username</td>
            <td width="115"><input name="username" type="text" class="fontBlack" id="username"></td>
          </tr>
          <tr>
            <td class="fontPink style2">Password</td>
            <td><input name="password" type="password" class="fontBlack"></td>
          </tr>
        </table>
  <div align="center"><img src="images/SignIn.jpg" alt="Click to Sign in" width="95" height="35" name="Submit"></div>
    </form>


How to get values from this one. I know how to get this values if i use button. but here it is img. how to get values.
Link to comment
Share on other sites

well first you havn't specified an action in your <form> tag. i would suggest specifying an action. next. to make an image you could do the following:

1. make a button and use CSS to set a background image.
or
2. make an onclick in your <img> tag which i think should work..

here is how to do #2.
[code]
<img src="images/SignIn.jpg" alt="Click to Sign in" width="95" height="35" name="Submit" onclick="document.form1.submit">
[/code]
give it a burl, otherwise i'd go with method one. which is what i'd do anyway.
Link to comment
Share on other sites

see the first post what i submitted

in that form i am going to get username and password in the same page using one image if the user enter the username and password he has to click the image it should be taken as

if(isset($_POST['Submit']))
{
validation here
if it is correct it should redirect
else
  error in username and password
}
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.