http://php.flashwebhost.com/vineesh/...ay_7_ex_1.html
PHP Code:
<html>
<body>
<h1>Welcome to Govt. V.V.H.S.S, Kodamthuruth</h1>
<form method="GET" action="student.php">
Enter Student Name: <input name="student" type="text"><br />
Select your class:
<select name="class">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select> <br />
Enter your division<input name="division" type="text"> <br />
<button type="submit">Click here!</button>
<button type="reset">Reset</button>
</body>
</html>
http://php.flashwebhost.com/vineesh/day7/student.php
PHP Code:
<?php
$schoolName = 'govt. v.v.h.s.s, kodamthuruth';
echo '<h1><font color=FB2E0A><u><I>Student Information</I></u></font></h1>';
echo 'Hello ' . '<font color=D10A0A><b>' . $_GET['student'] . '</font></b>' . '!. You are studying at ' . '<font color=099A3C><b>' . strtoupper($schoolName) . '</b></font>' . ' and You are in ' . '<font color=071486><b>' . $_GET['class'] . '</font></b>' . 'th standard ' . '<font color=071486><b>' . $_GET['division'] . '</font></b>' . ' division.';
Bookmarks