This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

More w3c validation errors


  1. reprocessor
    Member

    Hi Yuniar,

    Thanks for solving the last issue - I have one more though and I don't understand it. Please follow this link - http://validator.w3.org/check?uri=http%3A%2F%2Fwww.getaquoteaberdeen.co.uk%2Fblinds.php&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.591 I'm getting 13 errors all to do with the embedded php code (I used your wee css hack on this form as well by the way).

    The page in question is www.getaquoteaberdeen.co.uk/blinds.php and i'm stumped - is there any way to hide this markup like the css hack you gave me so that the page will validate correctly?

    This should hopefully be the last hack I need to get towards site completion ;)

    Thanks in advance,

    Phil

    Posted 16 years ago #
  2. yuniar

    Hmm.. this time the reCaptcha seems to be the problem, since it uses its own iframe.
    Try to use the internal CAPTCHA instead.

    Edit your config.php file and search for this line:
    define('USE_INTERNAL_CAPTCHA',false);

    change it to:
    define('USE_INTERNAL_CAPTCHA',true);


    MachForm Founder

    Posted 16 years ago #
  3. reprocessor
    Member

    Hi Yuniar,

    I tried this - it seems to clear it up but i get the following warning, any ideas?

    Validation Output: 1 Warning

    Below is a list of the warning message(s) produced when checking your document.

    1. Warning Line 332, Column 34: reference to non-existent ID "element_captcha".

    <label class="description" for="element_captcha">Type the letters you see in t

    This error can be triggered by:
    * A non-existent input, select or textarea element
    * A missing id attribute
    * A typographical error in the id attribute

    Try to check the spelling and case of the id you are referring to.

    Posted 16 years ago #
  4. yuniar

    Ahh.. I think you made me found some typo within MachForm for the captcha label.

    Ok, one small fix, edit your includes/view-functions.php file, on line 1514 you'll find this code:

    <label class="description" for="element_captcha">{$element->title} {$span_required}</label>

    change it to become:

    <label class="description" for="captcha_response_field">{$element->title} {$span_required}</label>

    That should fix it.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply