Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-26-2006, 05:45 AM   #1
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default Valid PHP string query: &variable=something

Quote:
Originally Posted by W3C
This page is not Valid HTML 4.01 Transitional!

<li><a href="page.php?var=2&myVar=06" class="page">
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon ( ; ). ....

Entity references start with an ampersand (&) and end with a semicolon ( ; ). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
Here is the article it was referring to: http://www.w3.org/QA/2005/04/php-session

So my question is:

How do you guru's go about validating your html when using PHP (or asp i guess) or don't you?
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");

Last edited by Flash Gordon; 02-26-2006 at 05:48 AM.
Flash Gordon is offline   Reply With Quote
Old 02-27-2006, 06:37 AM   #2
jsebrech
Joeri Sebrechts
 
Join Date: Apr 2005
Location: Antwerp, Belgium
Posts: 1,465
Default

That article contains detailed instructions on how to get your page to validate.

Validating PHP pages is little different from validating regular HTML, except that it becomes slightly more complicated to feed it to the validator.
jsebrech is offline   Reply With Quote
Old 02-27-2006, 03:41 PM   #3
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

I know, i was just wondering how YOU go about doing it. There seems to be several ways.

Thanks for replying
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 02-28-2006, 06:59 AM   #4
jsebrech
Joeri Sebrechts
 
Join Date: Apr 2005
Location: Antwerp, Belgium
Posts: 1,465
Default

I don't particularly try to get it validating, because of the overhead of doing that. I make sure the page is in standards mode instead of quirks mode (firefox tells you this in the page info dialog), and I use the standards as reference texts for what techniques I use. I design for firefox, then make it compatible with IE.
jsebrech is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
06++ = 7 != 07 Flash Gordon Server-Side Scripting 5 01-17-2006 06:27 PM
URL (with query string) not passing into flash Aaronin ActionScript 2.0 1 06-09-2005 08:22 PM
How to Send PHP string From Flash? emeba ActionScript 1.0 (and below) 4 03-23-2004 05:30 PM
string from flash to php and going for database madthijs Server-Side Scripting 7 03-23-2004 04:02 PM
Query String Variables nappy101 ActionScript 1.0 (and below) 0 04-02-2003 01:16 PM


All times are GMT. The time now is 09:16 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.