Practical No.1

Practical No.1

AIM:

Write a PHP program to get the user from a form and show greeting text.

PROGRAM: HTML FILENAME: Welcome.html

 

<html>

<head>

<style type="text/css">

div

{font-size:20pt;color:green;font-family:Jokerman;text-align:center;width:30%}

P

{font-size:18pt;color:darkblue;font-weight:bold;align:center;font-family:arial black}

.double{border-style:double}

.dashed{border-style:dashed}

</style></head><body><center><br><br>

<div class="double">GREETING TEXT</div><br>

<div class="dashed"><form action="gre.php" method="post">

<p>Enter The Text:<br><input type="text" name="n"></p><br>

<input type="submit" value="&nbsp;&nbsp;SUBMIT&nbsp;&nbsp;">

<br>

</div>

</center>

</form>

</body></html>  

 

PHP FILENAME: Gre.php

<html>

<head>

<title>WELCOME NOTE </title></head>

<body>

<?php

$n1=$_POST['n'];

echo'<p><img src="bow.jpg" alt="bow" style="float:right;">';

echo'<center><font color="green" face="arial" size="6">WELCOME</font>';

echo"<center><b> $n1 </b><font color='green'><br> !!!</font></center>";

echo'<img src="bow.jpg" alt="bow" style="float:left;"></p>';

?> </body> </html>

 


Comments

Popular posts from this blog

Practical 8 ( Recursive Function. )