Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialfoobarbaz
4,977 PointsThe requested URL /<a target= was not found on this server. - Error when I try to go to my shopping cart link.
I get this error when I try to go to my shopping cart link.
The requested URL /<a target= was not found on this server.
Here is my php code.
<html>
<head>
<title><?php echo $pageTitle; ?></title>
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div class="header">
<div class="wrapper">
<h1 class="branding-title"><a href="./">Shirts 4 Mike</a></h1>
<ul class="nav">
<li class="shirts <?php if( $section == "shirts" ) { echo "on"; } ?>"><a href="shirts.php">Shirts</a></li>
<li class="contact <?php if( $section == "contact" ) { echo "on"; } ?>"><a href="contact.php">Contact</a></li>
<li class="about <?php if( $section == "about" ) { echo "on"; } ?>"><a href="about.php">About</a></li>
<li class="cart"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_cart&business=X7WQRN83U2G74&display=1" target="paypal" >Shopping Cart</a></li>
</ul>
</div>
</div>
<div id="content">
I think the reason for the error has to do with the target in the anchor tag, but I don't really know what to do to fix it.
Let me know if you need more information.
Thanks!
1 Answer
Michael Geatz
6,093 PointsI don't think target="paypal" is a thing. You can use target="_blank", target="_self", etc. read more about the a target attribute here: http://www.w3schools.com/tags/att_a_target.asp
foobarbaz
4,977 Pointsfoobarbaz
4,977 PointsThanks. That was correct.