rlelek Posted April 19, 2008 Share Posted April 19, 2008 Just a quick question that involves (X)HTML and PHP I have a PHP link that sends variables through the URL <a href="game_details.php?game_id=2487&format_id=xbox360"> which is the result of this PHP script... <a href="game_details.php?game_id=<?php echo $row_new_releases_xbox360['game_id']; ?>&format_id=<?php echo 'xbox360'; ?>"> This will pass both the game_id and the format_id to the next page. However, The validator under "HTML 4.01 Transitional" keeps giving me these messages... # Error general entity X not defined and no default entity ✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. * Line 185, column 40: general entity "format_id" not defined and no default entity <a href="game_details.php?game_id=2487&format_id=xbox360"> Any Ideas? Thanks Everyone!!! Ryan ***I figured because I am trying to pass the validator this would be related more to HTML than PHP, so please forgive me if I posted in the incorrect forum. Link to comment https://forums.phpfreaks.com/topic/101825-solved-validation-with-php-url/ Share on other sites More sharing options...
ToonMariner Posted April 19, 2008 Share Posted April 19, 2008 change your & for & .... Link to comment https://forums.phpfreaks.com/topic/101825-solved-validation-with-php-url/#findComment-521609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.