Re: trans_sid and forms -- feature request???
| From: | Curt Zirzow | Date: | Mon, 29 Sep 2003 06:48:48 +0000 |
| Subject: | Re: trans_sid and forms -- feature request??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164201@lists.php.net to get a copy of this message | ||
* Thus wrote Curt Zirzow (php-general@zirzow.dyndns.org):
> * Thus wrote Justin French (justin@indent.com.au):
> > Hi all,
> >
> > enable_trans_sid in the PHP ini has given me no grief to date, but now
> > I'm working towards XHTML 1.0 Strict, and PHP seems to fall over when
> > dealing with forms.
> >
> > So, one option is to exclude form= from the list or rewrite tags in
> > php.ini, but this places a burden on the developers and writers to
> > manually do this.
> >
> > Option 2 I had *hoped* would be for the action='' attribute of a form
> > tag to be re-written rather than a hidden form element being added, but
> > I haven't been able to get this to work.
> >
> >
> > Can anyone offer a solution?
> > Has this feature been requested before, or is it likely to be included
> > in PHP 5?
>
> I found this:
> http://bugs.php.net/bug.php?id=13472
>
> After reading that I'm still confused wether it was fixed.
> So I tested it a bit with php 4.3.3 trans_id on...
Hmm.. Set up your form like this:
<form>
<div>
<fieldset>
<!-- input elements here -->
</fieldset>
</div>
</form>
Then with ini setting:
url_rewriter.tags="a=href,area=href,frame=src,input=src,fieldset="
Works like a Charm :)
Curt
--
"I used to think I was indecisive, but now I'm not so sure."