Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
hicuxunicorniobestbuildpc
Life Cycles Becoming CPU Cycles


Joined: Aug 13, 2009
Posts: 967
Location: Netherland

PostPosted: Mon Jan 11, 2010 11:06 am Reply with quote

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 hicuxunicorniobestbuildpc on Mon Jan 11, 2010 4:06 pm; edited 2 times in total 
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jan 11, 2010 11:56 am Reply with quote

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> .

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan.

Last edited by Palbin on Mon Jan 11, 2010 3:57 pm; edited 1 time in total 
View user's profile Send private message
hicuxunicorniobestbuildpc
PostPosted: Mon Jan 11, 2010 1:48 pm Reply with quote

Thanks Palbin. I already did it and it is working fine. Can u validate it to see if it is correct.?
 
Palbin
PostPosted: Mon Jan 11, 2010 3:59 pm Reply with quote

I think you need to have an "alt" attribute, for the image, for it to validate.
 
Palbin
PostPosted: Mon Jan 11, 2010 4:03 pm Reply with quote

Also this is how you should be writing this. At least the way I think you should Smile. There are reason, but I don't feel think explaining them now Smile

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: 9456
Location: Arizona

PostPosted: Mon Jan 11, 2010 6:52 pm Reply with quote

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... Wink

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©