[thelist] PHP Session ID stopping HTML validation

ben morrison morrison.ben at gmail.com
Fri Mar 31 03:35:00 CST 2006

On 3/31/06, john at johnallsopp.co.uk <john at johnallsopp.co.uk> wrote:
> Hi ppl
> I'm trying to create a valid HTML 4.01 Strict web page and the W3C
> Validator seems to require me to put a containing element around the
> <input>s, eg. <p>. It's not accepting <p><form>.., requires
> <form><p><input.. >
> The problem is PHP wants to put its sessionId between the form and the
> input: <form method='post' action='myP.php4'><input type="hidden"
> name="PHPSESSID" value="386bfe3c6ad31ed768ea88c0f3a809e7" /><p><input
> type='hidden' name='subc' value='1'> ..

Not sure about the PHP apsect.

Could you use a fieldset inside the form? maybe PHP would place the
sessionId inside the fieldset, which should help validate.


More information about the thelist mailing list