Jump to content

input style not working when adding name


xwishmasterx
Go to solution Solved by xwishmasterx,

Recommended Posts

Hello

 

I have a very wierd problem. Below code is a simple login form:


<form action="verify.php" method="post">
    User Name:<br>
    <input type="text" class="login" name="" ><br><br>
    Password:<br>
    <input type="password" class="login" name="password"><br><br>
    <div align="center"><input type="submit" name="submit" value="Login"></div>
</form>

The above code works fine, but if I add any value to the name attribute in the first input field, the style doesn't work.

(except if I enter "password")

Seems the css for background-image isn't added when entering anyname.

 

Anyone have an idea why this happens?

Link to comment
Share on other sites

Already tried that..thanks.

 

It seems it's the background property that isn't working as I can style height, width etc..

 

What puzzles me is that adding something to the name attribute kills the background style.

 

Seems adding any value to the input and css works fine again.

Edited by xwishmasterx
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.