Skip to content

Validation Issues

October 2, 2012

I’m having trouble getting my form submission page (the one that starts with “you submitted the following information” or says “all fields are required”) to validate. I’m getting three errors that all claim my <div> tags aren’t properly closed. (More specifically, I think it’s saying they aren’t closed in the right place, but I’m not totally sure where they should be closed.)

Here’s a link:

7 Comments leave one →
  1. derek permalink*
    October 2, 2012 3:21 pm

    Well, no worries on the validation of an error reporting page. But if you give it some thought it will be apparent that the die() statement is not letting the server print the rest of the closing HTML? Where and what would you add to make a valid error page? You don’t have to do this but it will test your understanding of what’s happening at the server side, eh?

  2. October 2, 2012 6:24 pm

    I may be wrong about this but my guess would be that if you directed the or part to a HTML 4.01 Transitional valid line in the includes directory then the HTML would validate. At least that seem to be the first issue of the 3 errors. Or if that is not right may be before the die() put in a require_once() that gets an *.inc file for the banner image that is HTML valid, at least the header/banner image would be valid. But if the issue is that the end of the HTML file is not read than an include that contains the end of the file could be set before the die(). I have not tried this just thinking about it. Does any body else have a clue as to what to do?

    • derek permalink*
      October 2, 2012 6:26 pm

      or you could just add the closing div, body and html parts after writing the error report…

  3. October 2, 2012 6:41 pm

    yah I guess the easy way would work too……

  4. Alice Worden permalink
    October 3, 2012 10:56 am

    Thanks for the feedback (both of you). I’ll play with it and see if I can make it work. Just to clarify, if I can’t make it work, it’s okay that it doesn’t validate (even though it’s not just the error reporting page but also the successful submission page)?

    • derek permalink*
      October 3, 2012 11:29 am

      do not worry about validation on the submission page because the validator is not parsing the page with data, instead it is taking all the lines in the file even when not rendered.

      • Alice Worden permalink
        October 3, 2012 11:49 am

        Got it. That’s the first thing I’ve worked on today that makes sense. Thanks.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: