| Author |
Message |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
Posted:
Mon Jan 11, 2010 11:06 am |
|
I tried to change this login to an imagen but it dissappear. I guess this one is a little different than Membership login. Can u correct me what is wrong.
from this one
| Code: | | echo "[ <a href=\"modules.php?name=$module_name\">"._LOGIN."</a> \n"; |
Replace with (but it doesnt show)
| Code: | | echo " <a href=\"modules.php?name=$module_name\"><img src=\"images/bblogin1.gif\" alt=\"Login\" </a> \n"; |
Ok let's validate it right now |
Last edited by unicornio on Mon Jan 11, 2010 4:06 pm; edited 2 times in total |
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Mon Jan 11, 2010 11:56 am |
|
First off you can't have a <td> tag inside of your <a> tags. Unless you are adding columns then you need to remove it. If you are it needs to be in front of the <a> tag. Second if you are just looking to have an image link to the lokgin area you should not be using an input tag. All you need to do is something like this: <a><img /></a> . |
Last edited by Palbin on Mon Jan 11, 2010 3:57 pm; edited 1 time in total |
|
|
 |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
Posted:
Mon Jan 11, 2010 1:48 pm |
|
Thanks Palbin. I already did it and it is working fine. Can u validate it to see if it is correct.? |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Mon Jan 11, 2010 3:59 pm |
|
I think you need to have an "alt" attribute, for the image, for it to validate. |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Mon Jan 11, 2010 4:03 pm |
|
Also this is how you should be writing this. At least the way I think you should . There are reason, but I don't feel think explaining them now
| Code: | echo '[ <a href="modules.php?name=' . $module_name . '"><img src="images/bblogin1.gif"alt="" /></a>' . "\n";
|
|
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Mon Jan 11, 2010 6:52 pm |
|
I also usually don't bother with the ending . "\n" because if I am debugging a site, I am always going to use FireFox and I just use the Tidy extension and can click a button and have all the HTML perfectly formatted for my viewing/reviewing pleasure...  |
|
|
|
 |
|
|
|
|