one easy (really easy) and one not so easy...questions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rathlon
Forum Commoner
Posts: 45
Joined: Sun Nov 10, 2002 8:07 pm

one easy (really easy) and one not so easy...questions

Post by rathlon »

1) I placed a link with an image as the following:

echo "<a href=\"/xx_db/view_module.php?offset=$nextoffset\"><img src=\"/images/right.01.jpg\" width=\"30px\" height=\"20px\"></a>";

When the image is rendered in the browser window (I.E. 6.0) it has a purple border around it. How do I rid the image of that annoying border?

2) I have a login in page on my site. I want to do a timed re-direct after a successful login. How would I do that? What I know so far about re-directs...

header("Location: http://xx/xx/xx.php");
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

border="0" should remove the purple/blue outline (don't thinks is XHTML friendly though)

Code: Select all

// your login processing code

if ($login_successful)
{
sleep(2);
header("Location: http://foo.com/bar/");
exit;
}
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

this one is validated as XHTML 1.0 Strict at http://validator.w3.org (setting Encoding: iso-8859-1)

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>XHTML Test</title>
    <meta name="description" content="xhtml border attribute test" />
  </head>
  <body>
  	<p>
	  	<a href="/xx_db/view_module.php?offset=1">
	  		<img src="/images/right.01.jpg" alt="right image" style="width:30px; height:20px; border-width:0px" />
	  	</a>
  	</p>
  </body>
 </html>
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

XHTML is a cockoff anyway, means sh!t all in the big scheme of things, just another way for programmers to justify a wage, by coming up with just plain anal corrections.

Just my opinion :)
Post Reply