/    Sign up×
Community /Pin to ProfileBookmark

php validation fails in w3 validator

Not sure whether this is a php thread or accessibility thread….

I’m passing 2 variables in PHP on a href which works absolutly fine but when I check it through the w3 xhtml validator it fails. Here is the script i’m using

[code=html]<a href=”page.php?section=Services&sub=general information”>Services</a>[/code]

Here is the w3 warning

[QUOTE]

# Warning Line 110, Column 43: reference not terminated by REFC delimiter.

<li><a href=”page.php?section=Services&sub[B][COLOR=”Red”]=[/COLOR][/B]generalinformation”>Services</a>

If you meant to include an entity that starts with “&”, then you should terminate it with “;”. Another reason for this error message is that you inadvertently created an entity by failing to escape an “&” character just before this text.

[/QUOTE]

Can anyone tell me how this should be scripted to pass w3??

thanks

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ZnupiMar 05.2008 — Try:
[code=html]
<a href="page.php?section=Services&amp;sub=general information">Services</a>
[/code]
Copy linkTweet thisAlerts:
@cannon303authorMar 05.2008 — doh! now I feel really stupid ? ? ? , Is there any way to remove this thread!!??

Thanks for your help
Copy linkTweet thisAlerts:
@ZnupiMar 05.2008 — Well, you can mark it resolved and no one will read it anymore ?
×

Success!

Help @cannon303 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 4.28,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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