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

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

Exp 10

The document outlines an experiment for designing a web page using HTML and PHP, specifically focusing on form controls like textboxes, radio buttons, checkboxes, and buttons. It includes a sample HTML code for the form and a PHP script to process and display the entered data. The output section indicates that the user's input will be displayed after submission.

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)
14 views2 pages

Exp 10

The document outlines an experiment for designing a web page using HTML and PHP, specifically focusing on form controls like textboxes, radio buttons, checkboxes, and buttons. It includes a sample HTML code for the form and a PHP script to process and display the entered data. The output section indicates that the user's input will be displayed after submission.

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. 10: Design a web page using following form controls:
Textbox, Radio button, Check box, Buttons
1. Write a Program for designing a Webpage using Textbox, Radio button, Checkbox
and Buttons and display all the data that is entered by user.
CODE:
html file:
<html>
<body>
<form method="POST" action="exp10.php">
Name: <input type="text" name="name"><br>
Gender: <input type="radio" name="rd" value="Male">Male
<input type="radio" name="rd" value="Female">Female<br>
Sem 6 subjects:<input type="checkbox" name="cb" value="WBP">WBP
<input type="checkbox" name="cb[]" value="DCC">DCC
<input type="checkbox" name="cb[]" value="MAD">MAD
<input type="checkbox" name="cb[]" value="DMS">DMS
<input type="checkbox" name="cb[]" value="CGR">CGR<br><br>
<input type="submit">
</form>
</body>
</html>

php file:
<?php
echo "Name: ".$_POST['name']."<br>";
echo "Gender: ".$_POST['rd']."<br>";
$sub = $_POST['cb'];
echo "Sem 6 sub: ";
foreach ($sub as $arr) {
echo $arr."<br>";
}
?>
OUTPUT:

You might also like