Top
Home

Form Element

<tr>
<td align=right>: </td>
<td><input type="text" name="" size="24" value=""> </td>
</tr>



Name this page ".php"




<?php echo $_POST['']; ?>


.................... OR ...........................

<?php
$=$_POST[''];
?>


<?php echo $; ?>


.................... OR ...........................

<?php
session_start();
$_SESSION['']=$_POST[''];
?>

<?php echo $_SESSION['']; ?>


...............................................

Form Start

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
</HEAD>
<BODY>
<form name="FearDearg" action=".php" method="post">
<table border="0" cellpadding="0" cellspacing="2" width="300">



<tr>
<td></td>
<td><input type="submit" name="submit" value="Get Code"> <input type="Reset" name="reset" value="Start Over"></td>
</tr>
</table>
</form>
</BODY>
</HTML>



<tr>
<td valign=top><nobr></td>
<td> <TEXTAREA id="styled"  NAME="" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
</td></tr>

<tr>
<td><nobr></td>
<td><SELECT NAME="">
<OPTION value=""></OPTION>
<OPTION value="aaa">aaa</OPTION>
<OPTION value="bbb">bbb</OPTION>
<OPTION value="ccc">ccc</OPTION>
<OPTION value="ddd">ddd</OPTION>
<OPTION value="eee">eee</OPTION>
<OPTION value="fff">fff</OPTION>
<OPTION value="ggg">ggg</OPTION>
<OPTION value="hhh">hhh</OPTION>
<OPTION value="iii">iii</OPTION>
<OPTION value="jjj">jjj</OPTION>
<OPTION value="kkk">kkk</OPTION>
<OPTION value="lll">lll</OPTION>
</SELECT> </td>
</tr>
<tr><td valign=top><p align=right><b>:</td>
<td>
<table><tr>
<td > <p align=right><b>aaa<td><INPUT TYPE="Radio" NAME="" VALUE="aaa">
</td>
</tr> <td><p align=right><b>
bbb<td><INPUT TYPE="Radio" NAME="" VALUE="bbb">
</td>
<tr><td><p align=right><b>
ccc<td><INPUT TYPE="Radio" NAME="" VALUE="ccc">
</td>
<tr><td><p align=right><b>
ddd<td><INPUT TYPE="Radio" NAME="" VALUE="ddd">
</td>
<tr><td><p align=right><b>
eee<td><INPUT TYPE="Radio" NAME="" VALUE="eee">
</td></table>
</td>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

<STYLE>
/* Background Color */
.moosetext {
color:#000;
background-color : #fff;
border: 1px solid #003;
width: 230px;
padding:3px;
}
.moosetext.active {color: #666666; font-style: italic;}
body,input{
font-family:Calibri,Arial;font-size:12px}
.text-label{color:#aaa;font-weight:normal;text-decoration:italic}
table{font-size:18px}
</STYLE>

<tr>
<td align=right>: </td>
<td><input type="text" name="" class="moosetext" size="24" title="Enter "> </td>
</tr>


<SCRIPT>
$(document).ready(function(){
 $('.moosetext').each(function(){
   var defaultVal = $(this).attr('title');
   $(this).focus(function(){
     if ($(this).val() == defaultVal){
       $(this).removeClass('active').val('');
     }
   })
   .blur(function(){
     if ($(this).val() == ''){
       $(this).addClass('active').val(defaultVal);
     }
   })
   .blur().addClass('active');
 });
 $('form').submit(function(){
   $('.moosetext').each(function(){
     var defaultVal = $(this).attr('title');
     if ($(this).val() == defaultVal){
       $(this).val('');
     }
   });
 });
});

</SCRIPT>