Bug #16810 Updated: URL rewriting is not HTML/XHTML compliant

From: Date: Thu, 25 Apr 2002 06:30:26 +0000
Subject: Bug #16810 Updated: URL rewriting is not HTML/XHTML compliant
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5930@lists.php.net to get a copy of this message
ID: 16810 Updated by: derick@php.net Reported By: email@cczona.com -Status: Open +Status: Closed Bug Type: Session related Operating System: Linux RedHat PHP Version: 4.0CVS-2002-04-2 New Comment: Fixed in CVS Previous Comments: ------------------------------------------------------------------------ [2002-04-24 21:21:16] email@cczona.com That output will become valid XHTML with the addition of an "id" parameter for the input tag. Since "id" is XHTML's replacement for the deprecated HTML "name" attribute, the usual method for making markup backward-compatible is to use both "name" and "id" attributes, giving the same value for both. For example: <input type="hidden" name="PHPSESSID" id="PHPSESSID" value="25ba3c5303803bb6914edff4d787b430" /> ------------------------------------------------------------------------ [2002-04-24 21:05:22] sniper@php.net This is the output with PHP 4.2.0: ---clip--- <form method="get"><input type="hidden" name="PHPSESSID" value="25ba3c5303803bb6914edff4d787b430" /> See hidden input<input type="submit" name="submit" value="Test" /> </form> <a href="/ses.php?foo=bar&amp;PHPSESSID=25ba3c5303803bb6914edff4d787b430">See new href</a> ---clip--- Which part is not valid XHTML? I have this set in my php.ini: ; The separator used in PHP generated URLs to separate arguments. ; Default is "&". arg_separator.output = "&amp;" ------------------------------------------------------------------------ [2002-04-24 20:48:38] email@cczona.com A simple example script: <?php session_start(); echo<<<EOF <form method="get"> See hidden input<input type="submit" name="submit" value="Test" /> </form> <a href="$PHP_SELF?foo=bar">See new href</a> EOF; ?> The url_rewriter.tags value: a=href,area=href,frame=src,form=fakeentry ------------------------------------------------------------------------ [2002-04-24 20:21:51] sniper@php.net Please add short script which can be used to reproduce this and also your url_rewriter.tags line from your php.ini ------------------------------------------------------------------------ [2002-04-24 19:42:58] yohgaki@php.net Except location of, <INPUT TYPE="hidden" NAME="SID" VALUE="[someSID] /> We can fix other issues. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16810 -- Edit this bug report at http://bugs.php.net/?id=16810&edit=1

« previous php.bugs (#5930) next »