Hey guys, a little problem with PHP and XHTML...
I'm using sessions to do tracking of actions on one of my scripts, and it validates - almost...
As you likely know, anything within a <form> tag is supposed to be encased in a <p>, which would make it:
<form action="" method="post">
<p>
...
</p>
</form>
However, because I'm using sessions, I'm getting a hidden input tag here:
<form method="post" action=""><input type="hidden" name="PHPSESSID" value="cfb0243566b75a7b8bc276c90e763de3" /><p>
...
</p></form>
See that..? The input named "PHPSESSID" is autogenerated (though no code of mine, that I can tell) and inserted directly after the <form> tag, meaning it's BEFORE my <p> tag - not good..
Any thoughts on how I can avoid this? It's definately cramping on my XHTML validation.
EDIT:
Thanks to
radio303, I was able to successfully solve this issue...
FIND:
REPLACE WITH:
-Shade
I'm using sessions to do tracking of actions on one of my scripts, and it validates - almost...
As you likely know, anything within a <form> tag is supposed to be encased in a <p>, which would make it:
<form action="" method="post">
<p>
...
</p>
</form>
However, because I'm using sessions, I'm getting a hidden input tag here:
<form method="post" action=""><input type="hidden" name="PHPSESSID" value="cfb0243566b75a7b8bc276c90e763de3"
...
</p></form>
See that..? The input named "PHPSESSID" is autogenerated (though no code of mine, that I can tell) and inserted directly after the <form> tag, meaning it's BEFORE my <p> tag - not good..
EDIT:
Thanks to
FIND:
function DisplayHeader()
{
include('header.inc.php');
}REPLACE WITH:
function DisplayHeader()
{
ini_set("url_rewriter.tags", "a=href,area=href,frame=src,iframe=src,input=src");
include('header.inc.php');
}-Shade
