PHP Classes

File: sample.html

Recommend this page to a friend!
  Classes of masa918  >  Form taglib classes  >  sample.html  >  Download  
File: sample.html
Role: ???
Content type: text/plain
Description: sample html file
Class: Form taglib classes
Simple HTML Form taglib
Author: By
Last change:
Date: 15 years ago
Size: 2,817 bytes


Class file image Download
  <body bgcolor="#ffffff">
  <div align="center">
  <form method="POST" name="test">
    <h2>PTag Test Page</h2>
        //  set text1's default
        $default_id = "admin";
        <!-- Textfield test -->
        <td>Login Id</td>
        <td><form:text name="login" default="$default_id" size="10" class="text"/></td>
        <!-- Password test -->
        <td><form:password name="pswd" size="10"/></td>
        <!-- radio button test -->
          <form:radio name="os" value="win" default="win">Windows9x/NT/2000</form:radio> 
          <form:radio name="os" value="linux">Linux</form:radio> 
          <form:radio name="os" value="max">Mac</form:radio>
        <!-- checkbox test -->
          <form:checkbox name="hobby[]" value="internet" default="internet">Internet</form:checkbox> 
          <form:checkbox name="hobby[]" value="movie">Moview</form:checkbox> 
          <form:checkbox name="hobby[]" value="sports">Sports</form:checkbox> 
        <!--  select test -->
        <td>User Type</td>
        <td align="center">
          <form:select name="type" default="guest"> 
            <form:option value="guest">Guest</form:option> 
            <form:option value="user">User</form:option> 
            <form:option value="admin">Admin</form:option> 
        <!--  select[multiple] test -->
          <form:select name="lang[]" default="jp" multiple="multiple" size="5"> 
            <form:option value="jp">Japanese</form:option> 
            <form:option value="en">English</form:option> 
            <form:option value="fr">French</form:option> 
            <form:option value="ch">Chinese</form:option> 
            <form:option value="de">German</form:option> 
      <!--  Textarea test -->
        <td colspan="2"> 
          <form:textarea name="addition" default="default" cols="20" rows="4"/></td>
        <td colspan="2" align="center">
          if($_POST["confirm"] != ""){
            $name = "commit";
            $name = "confirm";
          <input type="submit" name="$name" value="$name"/>&nbsp;&nbsp;
          <input type="reset"  name="reset"  value="reset"/>