RE: [PHP] an easy (perhaps dumb) question about PHP
| From: | Chris W. Parker | Date: | Mon, 07 Jun 2004 23:12:32 +0000 |
| Subject: | RE: [PHP] an easy (perhaps dumb) question about PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187854@lists.php.net to get a copy of this message | ||
Cere Davis <mailto:cere@u.washington.edu>
on Monday, June 07, 2004 3:28 PM said:
[snip]
> ...have a web
> library that writes basic html form input html types for like
> radio_button(name,val) and checkbox(name,val) type functions. I can't
> see that php has this type of feature.
i'm pretty sure that a class within the PEAR library will do this. but
you could easily and very quickly write your own functions.
function radio_button($name, $value)
{
echo "<input id=\"$name\" type=\"radio\" name=\"$name\"
value=\"$value\" />";
}
etc.
hth,
chris.