Page 1 of 1

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

Posted: Sun Dec 22, 2002 10:22 pm
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");

Posted: Sun Dec 22, 2002 10:41 pm
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;
}

Posted: Mon Dec 23, 2002 1:17 am
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>

Posted: Tue Dec 24, 2002 1:04 am
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 :)