Error found in xHTML output due to PHP's variables, $_SERVER and <ADDRESS>

reginaturkey

New Member
I'm having this problem with validating a document that contains some basic PHP variables. Mainly I'm using html's h1, h2, and pre codes for formatting the text.My problem is that when I validate the document, it comes out with an error. The problem area is this part of the file:\[code\]<h2>Server Info</h2><pre><?phpecho $_SERVER;print_r(var_dump($_SERVER));?></pre>\[/code\]I'm trying to figure out what's going whenever I try to validate it, I get an undefined element error.Here's a link to the validation page: http://goo.gl/napuEDIT: Link to the complete HTML source that's getting the error: http://pastebin.com/Kc6wh5s62ND EDIT: Used Pekka's suggestion and inserted the PHP snippet and now the page has been passed. Thanks!
 
Back
Top