iframe with src=xyz.php - accessibility check fails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Patrick666
Forum Newbie
Posts: 1
Joined: Sun Dec 31, 2006 8:47 am

iframe with src=xyz.php - accessibility check fails

Post by Patrick666 »

I have an iframe in my home page (index.php) . The iframe src is a PHP page(start.php). The user may link to another topic, this will load in page2.php to the iframe (or page3,4 etc.).
All this works fine and passes HTML validation checks.
When I try to get the home page through accessibility checks it fails.
The complaint (6.2) is that the iframe src must be an HTML page.
If I set the src to an HTML page it passes.
But I am doing PHP stuff in start.php and an HTML page will not do.
The only thing I can think of is to set the iframe src to an HTML page which has no content but has a refresh with zero timeout to my PHP page.
Any better suggestions or comments.
Patrick
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  • Stop using iframes
  • Ignore the odd "warning"
  • set .html pages to parse as PHP
What tool are you using to do an accessibility check?
Post Reply