Practical 10 : Write a PHP program for print variable value into text box.
<html>
<head>
<title>Print Variable Value in to Textbox</title>
</head>
<body>
<br>
<br>
<center>
<?php
$str='';
if(isset($_GET['ok']))
{
$str = "Welcome To Aurosoft";
}
?>
<form name="f1" method="get">
<table>
<tr>
<td>
<input type="text" name="t1" value="<?php echo $str; ?>">
<input type="submit" name="ok" value="Click Me">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>

EmoticonEmoticon