PHP Classes

File: temp.tpl

Recommend this page to a friend!
  Classes of mohamad Reza kavoosi   Fill Form   temp.tpl   Download  
File: temp.tpl
Role: Auxiliary data
Content type: text/plain
Description: html file
Class: Fill Form
Fill the inputs of a form with submitted values
Author: By
Last change:
Date: 12 years ago
Size: 2,047 bytes
 

Contents

Class file image Download
<html> <head> <title></title> <style> table tr td:FIRST-CHILD { background-color: #ccc } </style> </head> <body> <fieldset><legend>retrive data into form after postback</legend> <form method='post'> <input type="hidden" name='xxx' /> <table> <tr> <td>full name :</td> <td><input type='text' name='fullname' /></td> </tr> <tr> <td>country :</td> <td> <select name='country'> <option value='england'>england</option> <option value='american'>american</option> <option value='iran' >iran</option> </select> </td> </tr> <tr> <td>sex :</td> <td> <input name='sex' value='male' type='radio' id="male"/><label for="male">male</label> <input name='sex' value='woman' type='radio' id="woman" /><label for="woman">woman</label> </td> </tr> <tr> <td></td> <td><input name='item' value='item' type='checkbox' id="item" /><label for="item">item 1!</label><br/> <input name='item2' value='item' type='checkbox' id="item2" /><label for="item2">item 2!</label><br/> <input name='item3' value='item3' type='checkbox' id="item3" /><label for="item3">item 3!</label><br/> <input name='item4' value='item4' type='checkbox' id="item4" /><label for="item4">item 4!</label><br/></td> </tr> <tr> <td>address : </td> <td><textarea name='reza'> </textarea></td> </tr> </table> <input type='submit' value='postback'/> </form> </fieldset> <fieldset><legend>retrive data into form after postback</legend> <form name="hgjhgjh" method='post'> <table> <tr> <td>username :</td> <td><input type='text' name='username' /></td> </tr> <tr> <td>pass :</td> <td> <input type="password" name="pass"/> </td> </tr> </table> <input type='submit' value='postback'/> </form> </fieldset> </body> </html>