Wednesday, 19 December 2018

Asingment Lab 04

Assalamualaikum.. hi we meet again

Today i want to share about my assignment Lab04 in WWW programming. Based on PHP topic 8 and 9. I do the exercises in creating a sample then i create a folder and zip it. what i learnt in this exercise is creating a PHP code, here is the sample of the code that i have learn :


<html><head><title>Your Favourites</title></head>

<body>
 <form action="fav.php" method="post">

 Please enter your name :<input type="text" name="username" size="45">
 <p>
 Please select your favourite colour : 
  <input type="radio" name="colour" value="red"> Red
  <input type="radio" name="colour" value="yellow"> Yellow
  <input type="radio" name="colour" value="Blue"> Blue </p>
 <p>
 Please select your Drink :
  <input type="checkbox" name="drink1" value="Iced Tea">  Iced Tea
  <input type="checkbox" name="drink2" value="Millo">  Millo
  <input type="checkbox" name="drink3" value="Lemon Juice"> Lemon Juice </p>
 <p>
  <input type="submit" value=" Submit ">
  <input type="reset" value=" Clear ">
 </p>
</form>
</body>
</html>


To run this page..you must open XAMPP control panel and activate Apache and MYSQL

No comments:

Post a Comment