Location: PHPKode > projects > TinyButStrong > tinybutstrong/examples/tbs_us_examples_form.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>TinyButStrong</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="tbs_us_examples_0styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="160">&nbsp;</td>
    <td><h1>Example of getting data from a Form</h1></td>
    <td width="160" align="right"><span class="w3cinfo"><a href="http://validator.w3.org/check?uri=referer" target="_top"> </a></span>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="59"><span class="w3cinfo"><a href="http://validator.w3.org/check?uri=referer" target="_top"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" width="59" height="21" border="0"></a></span></td>
          <td width="90" class="w3cinfo">this TBS template is W3C compliant</td>
        </tr>
      </table></td>
  </tr>
</table>
<p align="center">This example illustrates how to handle getting and retreiving data from a Form.</p>
<form action="[onshow..script_name]" method="post" name="frm_info" id="frm_info">
  <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="296"><table width="100%" border="1" cellpadding="0" cellspacing="0">
          <tr>
            <td height="20" bgcolor="#BBCCED">Enter information:</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
                <tr align="left" valign="bottom" class="back-special2">
                  <td width="76">Gender : </td>
                  <td width="212"><select name="x_type" class="normal" id="select2">
                      <option value="[typeblk.val]">[typeblk.key;block=option]</option>
                      <option>[onshow.x_type;ope=html;select]</option>
                    </select>
                  </td>
                </tr>
                <tr align="left" valign="bottom" class="back-special2">
                  <td>Last name: </td>
                  <td><input name="x_name" type="text" class="normal" id="x_name2" value="[onshow.x_name]">
                  </td>
                </tr>
                <tr align="left" valign="bottom" class="back-special2">
                  <td>First name:</td>
                  <td><input name="x_subname" type="text" class="normal" id="x_subname2" value="[onshow.x_subname]">
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="30" bgcolor="#BBCCED"><div align="center">
                <input name="btn_save" type="submit" class="normal" id="btn_save2" value="  Validate  ">
              </div></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <div align="center"><br>
    <strong><font color="[onshow.msg_color]">[onshow.msg_text]</font></strong> </div>
</form>
</body>
</html>
Return current item: TinyButStrong