Bug #12720 Updated: An unnecessary extra slash
| From: | torben@php.net | Date: | Thu, 21 Feb 2002 04:17:55 +0000 |
| Subject: | Bug #12720 Updated: An unnecessary extra slash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-704@lists.php.net to get a copy of this message | ||
ID: 12720
Updated by: torben@php.net
Reported By: pulstar@mail.com
Status: Closed
Bug Type: Session related
Operating System: Linux RedHat 7.1
PHP Version: 4.0.6
New Comment:
No, it's valid HTML all the way back to 2.0--it doesn't
break HTML conformance at all. I suppose if you were
desparate to get rid of it you could use output buffering
and run a regex replace over the buffer before you send it
to the browser.
I rather strongly suspect your problem is elsewhere.
Torben
Previous Comments:
------------------------------------------------------------------------
[2002-02-20 22:53:15] teilo+php@teilo.net
Is there no way to disable it though? I could not find any.
Rough guess is that most people are still serving HTML 4.01
transitional pages or someother version of HTML. This then breaks
conformance for those pages.
Also PHP ignores the fact that you may already be sending this. eg if
you have the following
<FORM ...
action="mydynpage.php?downloadID=a50d7195a107538e8043c4223e900a48"> php
still adds the hidden input.
------------------------------------------------------------------------
[2001-08-13 12:09:14] swm@php.net
The extra slash is so that PHP is in compliance with XHTML
1.0. See http://www.w3.org/MarkUp/ for more information.
Also, if this is causing your applications problems, you
may be designing them incorrectly.
------------------------------------------------------------------------
[2001-08-13 12:04:48] pulstar@mail.com
<input type="hidden" name="PHPSESSID"
value="28d352f895d1d14d2121e32d80a69299" />
When cookies are not available, PHP auto append the input above in each
form of my page. My question is: why that slash is there in the end of
the tag? It is making trouble in my site...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12720&edit=1