Re: what is the preferred method for outputting HTML?
| From: | Torsten Roehr | Date: | Fri, 21 May 2004 18:47:29 +0000 |
| Subject: | Re: what is the preferred method for outputting HTML? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186706@lists.php.net to get a copy of this message | ||
"Bob Lockie" <bjlockie@lockie.ca> wrote in message
news:40AE4C9E.5060602@lockie.ca...
>
> PERL has the CGI library to build HTML.
> print header;
> print start_html('A Simple Example'),
> h1('A Simple Example'),
> start_form,
> "What's your name? ",textfield('name'),
> p,
> "What's the combination?",
> p,
> checkbox_group(-name=>'words',
> -values=>['eenie','meenie','minie','moe'],
> -defaults=>['eenie','minie']),
> p,
> "What's your favorite color? ",
> popup_menu(-name=>'color',
>
> -values=>['red','green','blue','chartreuse']),
> p,
> submit,
> end_form,
> hr;
>
> Does PHP have something similar or do I have to write the raw HTML?
Go to http://pear.php.net and search for 'HTML'. There
are several classes
for outputting HTML.
Regards,
Torsten Roehr