Copy link to clipboard
Copied
Hi
In DW8 the code written by the record set paging object fails w3c validation because of unencoded ampersands in URLs
ie
page.php?pageNum_portfolio=1&totalRows_portfolio=52
rather than
page.php?pageNum_portfolio=1&totalRows_portfolio=52
Can anyone advise how I resolve this?
Has this been fixed in a later release of DW?
Thanks
Copy link to clipboard
Copied
It's ok I've found the bit I needed to change.
Is this fixed in later versions of DW? I have DW8
Copy link to clipboard
Copied
Are you using Dreamweaver 8.0.2? If not, get the updater from http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dw8. You will also need to install the PHP extension fix for 8.0.2. Get it from the link in the first paragraph on the following page: http://kb2.adobe.com/cps/000/b6c2ae2a.html.
I have just compared the code from a site made in DW 8.0.2 with one made in DW CS4. It's identical, and it correctly encodes the ampersand.
If you're using 8.0.2, and the ampersand is not correctly encoded, it could be the version of PHP you're using. Try the following:
<?php printf('&'); ?>
Load that into a browser and view the source. In PHP 5.3, it outputs it as the correct HTML entity.