/    Sign up×
Community /Pin to ProfileBookmark

Page validation from W3C using php?

I created this page [url]http://www.childsinc.com/ascii_table.php[/url] and can’t get it to validate due to the ascii code (I’m assuming this is the reason).

Any suggestions besides forgetting the validation?

thanks peeps

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinJun 07.2005 — I wouldn't have thought ASCII would have been a problem. ASCII falls under utf8 so I would have thought it was fine. You didn't write it in something silly like MS word did you?
Copy linkTweet thisAlerts:
@NogDogJun 07.2005 — please delete (realized my suggestion was wrong)
Copy linkTweet thisAlerts:
@UltimaterJun 08.2005 — instead of writting
<td>  =  </td>
write:
<td>  =  &[b][/b]#001; </td>

And you might need to use a special font on those.
Copy linkTweet thisAlerts:
@rch10007authorJun 08.2005 — It is the php function that is writing the symbols. I didn't input them all manually. I did look at the page on my brothers computer and becasue I used a dtd the page doesn't show properly so i am just going to take that out.
Copy linkTweet thisAlerts:
@rch10007authorJun 08.2005 — here is the code I used to get it to validate

[code=php]
<?php

$i = 1;

echo "<table cellpadding="10" align="center">n";

for ($row=1;$row<=51;$row+=1) {
echo "<tr>n";


for ($col=1;$col<=5;$col+=1) {
echo "<td>&amp;#".str_pad($i,3, "0", STR_PAD_LEFT)."; = &#".str_pad($i,3, "0", STR_PAD_LEFT).";</td>";
$i++;
}

echo "n</tr>n";
}

echo "</table>n";

?>

[/code]
Copy linkTweet thisAlerts:
@UltimaterJun 08.2005 — It's better to use this DTD than none at all:
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;

You shouldn't ever have to omit the DOCTYPE tag in any situation, it's just a matter of picking the right one to use.

PS: I think a Lightning Fury Avatar would look cooler than Bone Spirit ?
×

Success!

Help @rch10007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...