mjmuk
08-03-2006, 04:26 AM
I may be missing something simple here, but...
I have set up a Paypal donate button on a web page http://www.nhswatch.info, the button functions fine, but when I validate this or any of the other pages where the button appears against the W3C validator at http://validator.w3.org/detailed.html (http://vallidator.w3.org/detailed.html) I get a number of errors relating to 'document type does not allow element "input" here'.
I've read my 'books' and have tried a number of workarounds to fix the errors, but do not seem able to crack this one, have I forgot something simple here?
Lines of Paypal code are:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="donate@nhswatch.info" />
<input type="hidden" name="item_name" value="donation to www.nhswatch.info" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="tax" value="0" />
<input type="hidden" name="bn" value="pp-donationsbf" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="donate with paypal" />
</form>
Any feedback very welcome. :o
I have set up a Paypal donate button on a web page http://www.nhswatch.info, the button functions fine, but when I validate this or any of the other pages where the button appears against the W3C validator at http://validator.w3.org/detailed.html (http://vallidator.w3.org/detailed.html) I get a number of errors relating to 'document type does not allow element "input" here'.
I've read my 'books' and have tried a number of workarounds to fix the errors, but do not seem able to crack this one, have I forgot something simple here?
Lines of Paypal code are:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="donate@nhswatch.info" />
<input type="hidden" name="item_name" value="donation to www.nhswatch.info" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="tax" value="0" />
<input type="hidden" name="bn" value="pp-donationsbf" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="donate with paypal" />
</form>
Any feedback very welcome. :o