Hmm eh?

HTML/XHTML related discussion or help.

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 2:20 pm

i dont understand what you mean about the if/else bit,

Also ive changed to styling it now using font-style:italics; in CSS

please can u explain the if/else bit? :)
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Re: Hmm eh?

Advertisment

Advertisment
 

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 2:23 pm

Okay, ive fixed that one, one last error to go :D

document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
…input type="submit" name="submit" value="Update Cart" />

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


i dont understand this one, as it isnt inside an inline element. its only inside a <form> which is where it is supposed to be, :/
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 3:11 pm

fixed, It was as simple as wrapping it all in <fieldset>

(the form data)
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 3:13 pm

still got the problem if i remove error_reporting(0) though,

Any ideas? :)
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby libeco » Fri Feb 05, 2010 3:16 pm

If it's the input on the same page I wouldn't worry about it. Remember that validating is only a matter of making sure you didn't make any stupid mistakes. It's not a way to magically create semantic code. Firefox' validator has no problem with your page.
Common PHP/MySQL errors | How to display code on the forum
"It always seems impossible until its done." - Nelson Mandela
User avatar
libeco
Moderator
 
Posts: 2466
Joined: Fri Apr 24, 2009 9:03 pm
Location: Netherlands
Online: 5d 9h 32m 31s
Karma: 25

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 3:18 pm

I know, but i cant post it as being XHTML valid, if it throws up errors..

:/

:)
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby libeco » Fri Feb 05, 2010 3:20 pm

bowersbros wrote:fixed, It was as simple as wrapping it all in <fieldset>

(the form data)


That was the version I was looking at while writing my previous post. I already saw a fieldset.
Common PHP/MySQL errors | How to display code on the forum
"It always seems impossible until its done." - Nelson Mandela
User avatar
libeco
Moderator
 
Posts: 2466
Joined: Fri Apr 24, 2009 9:03 pm
Location: Netherlands
Online: 5d 9h 32m 31s
Karma: 25

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 3:28 pm

So, any ideas about the error_reporting bit? :)
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby bowersbros » Fri Feb 05, 2010 3:35 pm

These are the errors given out by the validator:

document type does not allow element "br" here
        <br />

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


document type does not allow element "b" here
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/flashmin/pu

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


character data is not allowed here
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/flashmin/pu

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:

putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.


document type does not allow element "b" here
…rgument supplied for foreach() in <b>/home/flashmin/public_html/codecanyon/ca

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


character data is not allowed here
…c_html/codecanyon/cart/cart.php</b> on line <b>41</b><br />

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:

putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.


document type does not allow element "b" here
…ecanyon/cart/cart.php</b> on line <b>41</b><br />

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


document type does not allow element "br" here
…/cart.php</b> on line <b>41</b><br />

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


However, none of that is in my code..

Im totally baffled by this ? :/
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2019
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 10h 10m 21s
Karma: 6

Re: Hmm eh?

Postby wide_load » Fri Feb 05, 2010 4:04 pm

you are getting php errors in your html when the validator visits the page, perhaps because some $_GET data is not present.

try using the http://validator.w3.org/#validate_by_input version and paste in the source you see
Image
User avatar
wide_load
Top Contributor
 
Posts: 5560
Joined: Thu Aug 13, 2009 1:04 pm
Online: 13d 13h 43m 13s
Karma: 45

Previous

Return to HTML/XHTML

Who's online?

Users browsing this forum: No registered users and 1 guest

cron