3 // $Id: plc_details.php 11645 2009-01-21 23:09:49Z thierry $
5 require_once 'plc_functions.php';
7 function plc_form_start ($url, $values, $options=array()) {
8 $method = array_key_exists('method',$options) ? $options['method'] : 'POST';
9 print "<form method=$method action='$url' enctype='multipart/form-data'>";
10 foreach ($values as $key=>$value) {
11 print "<input type=hidden name='$key' value='$value'>";
15 function plc_form_end($options=array()) {
19 function plc_form_checkbox_text ($name,$value,$selected=false) {
20 return "<input type=checkbox name='$key' value='$value'>";
23 function plc_form_submit_text ($name,$display) {
24 return "<input type=submit name='$name' value='$display'>";
27 function plc_form_file_text ($name,$size) {
28 return "<input type=file name='$name' size=$size>";
31 function plc_form_label_text ($label,$name) {
32 return "<label for=$name>$text </label>";