<html>
<head>
<title>title</title>
</head>
<body bgcolor="#ffffff">
<div align="center">
<form method="POST" name="test">
<h2>PTag Test Page</h2>
<table>
<tr><?php
// 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>
</tr>
<tr>
<!-- Password test -->
<td>Password</td>
<td><form:password name="pswd" size="10"/></td>
</tr>
<tr>
<!-- radio button test -->
<td>OS</td>
<td>
<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>
</td>
</tr>
<tr>
<!-- checkbox test -->
<td>Hobbies</td>
<td>
<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>
</td>
</tr>
<tr>
<!-- 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>
</form:select>
</td>
</tr>
<tr>
<!-- select[multiple] test -->
<td>Language</td>
<td>
<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>
</form:select>
</td>
</tr>
<!-- Textarea test -->
<tr>
<td colspan="2">
<form:textarea name="addition" default="default" cols="20" rows="4"/></td>
</tr>
<tr>
<td colspan="2" align="center">
<?php
if($_POST["confirm"] != ""){
$name = "commit";
}
else{
$name = "confirm";
}
?>
<input type="submit" name="$name" value="$name"/>
<input type="reset" name="reset" value="reset"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html> |