<?php
// 2003 12 06 Abendon du prg.
function form ($var)
{
printf("<FORM METHOD=\"POST\" ACTION=\"%s\">\n", $var);
}
function uform ()
{
printf("</FORM>");
}
function href ($link, $txt, $opt = "")
{
return(sprintf("<A HREF=\"%s\" %s>%s</A>", $link, $opt, $txt) );
printf("<A HREF=\"%s\" %s>%s</A>", $link, $opt, $txt);
}
function option ($var, $value, $selected = "")
{
printf("<OPTION VALUE=\"%s\"", $value);
if ( $selected == $value ) printf(" SELECTED");
printf(">%s</OPTION>\n", $var);
}
function p( $var = "", $opt = "" )
{
printf("<P");
if (!empty($opt)) printf(" %s", $var);
printf(">%s</P>", $var);
}
?>
php-comment Code
Branches
[3e0f85]: / html.php Maximize Restore History
Download this file
38 lines (28 with data), 658 Bytes