SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Nov 2012
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Paypal & XE Com validtion

    With a great deal of help and no small amount of patience from the guys of the CSS forum, I have transformed site of some 600 pages from frames to up to date standards with CSS.

    It has been a great learning experience, however having got so far, I am left with a number of errors which the validator says are there.

    However these errors are in the coding supplied by Paypal and by XE.com.

    An example is at www.c5d.co.uk/scotland.php

    Can anything be done about these ? Or must I settle for this small number of non compliances

    Thanks

    Antony
    Last edited by TechnoBear; Jan 11, 2013 at 08:53. Reason: Fixed link

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,608
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Change:

    Code:
    <a NAME="target">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_oe-gift-certificate">
    <input type="hidden" name="business" value="antonylambert@certificates.fsnet.co.uk">
    <input type="hidden" name="amount" value="18.00">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="bn" value="PP-GiftCertBF">
    <input type="hidden" name="fixed_denom" value="18.00">
    <input type="hidden" name="style_theme" value="WT">
    <input type="hidden" name="shopping_url" value="http://www.certificates.fsnet.co.uk/c5d.htm">
    <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buyAGiftCertificate_06.gif" style="border: 0px solid"  name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt=""  src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    </form></a>
    to

    Code:
    <div id="target">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_oe-gift-certificate">
    <input type="hidden" name="business" value="antonylambert@certificates.fsnet.co.uk">
    <input type="hidden" name="amount" value="18.00">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="bn" value="PP-GiftCertBF">
    <input type="hidden" name="fixed_denom" value="18.00">
    <input type="hidden" name="style_theme" value="WT">
    <input type="hidden" name="shopping_url" value="http://www.certificates.fsnet.co.uk/c5d.htm">
    <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buyAGiftCertificate_06.gif" style="border: 0px solid"  name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt=""  src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    </form></div>
    Also with your XE select list you can't have both AUD and NZD selected by default unless you add multiple to the select tag. Without the extra attribute only one will be selected and which of the two will depend on how the different browsers fix that error.

    You might have to live with the errors relating to the script tag.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Addict
    Join Date
    Nov 2012
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much for this ?

    It has worked perfectly. I have deleted the script which shouldn't have been there anyway.

    Everything now validates perfectly

    Antony


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •