what is the preferred method for outputting HTML?
| From: | Bob Lockie | Date: | Fri, 21 May 2004 18:38:22 +0000 |
| Subject: | what is the preferred method for outputting HTML? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186701@lists.php.net to get a copy of this message | ||
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?