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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.