Results 1 to 3 of 3

Thread: HTML5 validation

  1. #1
    Join Date
    Dec 2002
    Warwickshire, England

    HTML5 validation

    Hi all,

    I have a script wriiten for use with HTML5 and Cache Manifest.

    When I try and validate the script I get one error in a FORM section.

    <form id="form2" name="form2" method="post" action="flight_multi.php?MobileNumber=<?php print $_SESSION['mobilecookie'];?>">
    <input name="button" type="image" id="button"  src="images/tracking_button.png" alt="Current flights" />
    The validator show the following errror

    1.Error: Bad value flight_multi.php?MobileNumber=
    Notice: Undefined index: mobilecookie in /home/vhosts/mydomain/httpdocs/index_home.php on line 57
    for attribute action on element form: Control character in query component.

    From line 42, column 17; to line 44, column 2

    <form id="form2" name="form2" method="post" action="flight_multi.php?MobileNumber=↩Notice: Undefined index: mobilecookie in /home/vhosts/mydomain/httpdocs/index_home.php on line 57

    Can anyone help me ger around/fix this issue.

    Many thanks in advance.

    Keep safe and well.


  2. #2
    Join Date
    Mar 2011
    There's a problem with the PHP script that generates the page. The $_SESSION array has no entry with the key 'mobilenumber', and so a warning message is being inserted into the 'action' attribute of your <form> tag. There's no way to diagnose this further without seeing the source code for this page, and possibly other files as well.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2012
    The HTML5 validation is describe several attributes which we can use with input elements to perfume client-side validation including the required, max, min, step and maxlength attributes.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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