Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views2 pages

Exp 11

The document outlines an experiment for a Web Based Application Development course, where a web page is designed using HTML form controls such as a hidden field, list box, and combo box. It includes a sample HTML code for the form and a PHP script to process and display the submitted values. The output shows the hidden value, selected hobbies, and subjects chosen by the user.

Uploaded by

ansarisadeem8879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Exp 11

The document outlines an experiment for a Web Based Application Development course, where a web page is designed using HTML form controls such as a hidden field, list box, and combo box. It includes a sample HTML code for the form and a PHP script to process and display the submitted values. The output shows the hidden value, selected hobbies, and subjects chosen by the user.

Uploaded by

ansarisadeem8879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name: Midhat Ansari Roll no: 210403

Sub: Web Based Application Development with PHP (WBP) Branch: CO


Experiment No. 11: Design a web page using following form controls: List
box, Combo box, Hidden field box
1. Write a Program to add hidden field, list box, and combo box on webpage and display
the values entered and selected on the next page.
CODE:
html file:
<html>
<body>
<form name="form1" method="post" action="exp11.php">
<input type="hidden" name="hidden" value="Hidden value">
<p> Select your hobbies:
<select id="list" name="combo">
<option> Cricket </option>
<option> Badminton </option>
<option> Football </option>
<option> Tennis </option>
</select><br></p>
<p> Select subjects:
<select id="cb" size="3" name="lis[]" multiple>
<option> WBP </option>
<option> MAD </option>
<option> MAN </option>
<option> PWP </option>
<option> EDE </option>
</select><br></p>
<input type="submit">
</form>
</body>
</html>

php file:
<?php
echo "Hidden ".$_POST['hidden']."<br>";
echo "Hobbies ".$_POST['combo']."<br>";
echo "Subjects:<br> ";
$sub = $_POST['lis'];
foreach ($sub as $arr) {
echo $arr."<br>";
}
echo "<hr>Midhat Ansari-210403";
?>
OUTPUT:

You might also like