Jump to content

[SOLVED] Validation with PHP URL?


rlelek

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.