Re: Changes to HTML/Form.php

From: Date: Sun, 26 Aug 2001 21:16:31 +0000
Subject: Re: Changes to HTML/Form.php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1699@lists.php.net to get a copy of this message
So sprach »Martin Jansen« am 2001-08-26 um 18:12:51 +0200 : > . It isn't a big problem to implement something like this (at > least I think so), but I'm not sure, if people would start > using such a complex feature ... Uhm, how about adding an unparsed extra args to the functions? I've patched my local HTML/Form.php some time ago to do this. How I did it, was like this (returnTextarea() - but the others are just like this: function returnTextarea($name, $default = '', $width = 40, $height = 5, $attribs = '') { $str .= '<TEXTAREA NAME="' . $name . '" COLS="' . $width . '" ROWS="' . $height . '"'; // Add unparsed attributes if ($attribs){ $str .= ' ' . $attribs; } // End of this :) $str .= '>'; $str .= $default; $str .= "</TEXTAREA>"; return $str; } If you're interested, I can mail the patched HTML/Form.php Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 0 hours 18 minutes

« previous php.pear.dev (#1699) next »