SlideShare a Scribd company logo
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
National Diploma in Information and Communication Technology
PHP :2-FORM-HANDLING>
K72C001M07 - Web Programming
11/23/2018 2-FORM-HANDLING 1
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
HTML Form
//login.html
<html>
<body>
<form action="login_get.php" method=“get">
Username: <input type="text" name="userName"><br>
Password: <input type="text" name="password"><br>
<input type="submit">
</form>
</body>
</html>
11/23/2018 2-FORM-HANDLING 2
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
When to use GET?
• Information sent from a form with the GET method is visible to
everyone .
• All variable names and values are displayed in the URL.
• GET also has limits on the amount of information to send.
• The limitation is about 2000 characters.
• The variables are displayed in the URL, it is possible to bookmark the
page.
• This can be useful in some cases.
• GET may be used for sending non-sensitive data.
• Note: GET should NEVER be used for sending passwords or other
sensitive information!
11/23/2018 2-FORM-HANDLING 3
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
HTTP GET method
//login_get.php
Welcome <?php echo $_GET["userName"]; ?>
<br> Your Password is: <?php echo
$_GET["password"];?>
11/23/2018 2-FORM-HANDLING 4
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
When to use POST?
• Information sent from a form with the POST method is invisible to
others.
• All names/values are embedded within the body of the HTTP
request.
• No limits on the amount of information to send.
• Supports advanced functionality such as support for multi-part binary
input while uploading files to server.
• It is not possible to bookmark the page.
• Developers prefer POST for sending form data.
11/23/2018 2-FORM-HANDLING 5
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
HTTP POST method
//login_post.php
Welcome <?php echo $_POST["userName"]; ?><br>
Your Password is: <?php echo
$_POST["password"];?>
11/23/2018 2-FORM-HANDLING 6
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Exercise (1): Form – Sign up
• Write a program to display entered details of following interface
• Method = POST
11/23/2018 2-FORM-HANDLING 7
Last Name
First Name
E-mail
Password
Conform Password
Sign up
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Exercise (2): Form – Sign in
• Write a program to check user name and password correct or not.
• Give message successfully login or unauthorized access.
• Use your own user name and password
• Login.html
• Login.php
11/23/2018 2-FORM-HANDLING 8
User Name
Password
Sign in
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Exercise (2): Answer
• Login.html
<html>
<body>
<h1>Login Form</h1>
<form method="POST" action=“Login.php">
<p> Name </p> <input type="text" name="name" size=20
/>
<p> Password </p> <input type="password" name="pass"
size=20 />
<input type="submit" name="login" value="login" />
</form>
</body>
</html
11/23/2018 2-FORM-HANDLING 9
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Exercise (2): Answer
• Login.php
<?php
if(($_POST['name']=="user") &&
($_POST['pass']=="pass"))
echo "<h1> Hello ".$_POST['name']."</h1>";
else
echo "<h2> Access Denied </h2>";
?>
11/23/2018 2-FORM-HANDLING 10
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
isset( $var)
• Returns TRUE if var exists and has value other than NULL. FALSE
otherwise.
$var = '';
// This will evaluate to TRUE so the text will
be printed.
if (isset($var)) {
echo "This var is set so I will print.";
}
$a = "test";
$b = "anothertest";
var_dump(isset($a)); // TRUE
11/23/2018 2-FORM-HANDLING 11
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Values of Checked Checkboxes
• Example: checkbox.php
<h2>Select your technical exaposer:</h2>
<form action="#" method="post">
<input type="checkbox" name="check_list[]"
value="C/C++"><label>C/C++</label><br/>
<input type="checkbox" name="check_list[]"
value="Java"><label>Java</label><br/>
<input type="checkbox" name="check_list[]"
value="PHP"><label>PHP</label><br/>
<input type="submit" name="submit"
value="Submit"/>
</form>
11/23/2018 2-FORM-HANDLING 12
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Values of Checked Checkboxes
• Example: checkbox.php
<?php
if(isset($_POST['submit'])){
if(!empty($_POST['check_list'])){
foreach($_POST['check_list'] as $selected){
echo $selected."</br>";
}}}
?>
11/23/2018 2-FORM-HANDLING 13
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Value of Select Option - single
• Example: select_option.php
<form action="#" method="post">
<select name="Color">
<option value="Red">Red</option>
<option value="Green">Green</option>
<option value="Blue">Blue</option>
<option value="Pink">Pink</option>
<option value="Yellow">Yellow</option>
</select>
<input type="submit" name="submit" value="Get
Selected Values" />
</form>
11/23/2018 2-FORM-HANDLING 14
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Value of Select Option - single
• Example: select_option.php
<?php
if(isset($_POST['submit'])){
$selected_val = $_POST['Color'];
echo "You have selected :" . $selected_val;
}
?>
11/23/2018 2-FORM-HANDLING 15
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Value of Select Option - multiple
• Example: select_option_multiple.php
<form action="#" method="post">
<select name="Color[]" multiple>
<option value="Red">Red</option>
<option value="Green">Green</option>
<option value="Blue">Blue</option>
<option value="Pink">Pink</option>
<option value="Yellow">Yellow</option>
</select>
<input type="submit" name="submit" value="Get
Selected Values" />
</form>
11/23/2018 2-FORM-HANDLING 16
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Get Value of Select Option - multiple
• Example: select_option_multiple.php
<?php
if(isset($_POST['submit'])){
foreach ($_POST['Color'] as $select)
{
echo "You have selected : $select <br/>";
}
}
?>
11/23/2018 2-FORM-HANDLING 17
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
• Example: signup.php
<html>
<head>
<title>Sign-Up</title>
<style>
body {
margin: auto;
width: 500px;
}
div {
padding: 10px;
}
div span {
color: red;
}
</style>
</head>
11/23/2018 2-FORM-HANDLING 18
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
<body>
<h3>Registration Form</h3>
<?php
$nameErr = $userNameErr = $passwordErr =
$cpasswordErr= "";
$fullname = $email = $userName = $gender =
$password = $cpassword = null;
if(isset($_POST['submit'])){
if (empty($_POST["name"])) {
11/23/2018 2-FORM-HANDLING 19
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
$nameErr = "Name is required";
} else {
$fullname = $_POST['name'];
}
if (empty($_POST["user"])) {
$userNameErr = "Username is
required";
} else {
$userName = $_POST['user'];
}
11/23/2018 2-FORM-HANDLING 20
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
if (empty($_POST["pass"])) {
$passwordErr = "Password is
required";
} else {
$password = $_POST['pass'];
}
$email = $_POST['email'];
$gender = $_POST['gender'];
11/23/2018 2-FORM-HANDLING 21
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
$cpassword = $_POST['cpass'];
}
?>
<form method="POST" action="#">
<div>Name<input type="text" name="name"
/><span>*<?php echo $nameErr; ?></span></div>
<div>Email <input type="text"
name="email"></div>
<div>Gender:
<input type="radio" name="gender"
value="Female" checked>Female
<input type="radio" name="gender"
value="Male">Male</div>
11/23/2018 2-FORM-HANDLING 22
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
<div>UserName <input type="text"
name="user"><span>*<?php echo $userNameErr;
?></span></div>
<div>Password <input type="password"
name="pass"><span>*<?php echo $passwordErr;
?></span></div>
<div>Confirm Password<input type="password"
name="cpass"></div>
<div><input id="button" type="submit"
name="submit" value="Sign-Up"></div>
</form>
<?php
echo'
<div>Name : '.$fullname.'</div>
11/23/2018 2-FORM-HANDLING 23
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Required Fields
<div>Email : '.$email.' </div>
<div>UserName : '.$userName.' </div>
<div>Gender : '.$gender.' </div>
<div>Password : '.$password.' </div>
<div>Confirm Password :
'.$cpassword.'</div>
';
?>
</body>
</html>
11/23/2018 2-FORM-HANDLING 24
Sri Lanka-German Training InstituteDepartment of Information and Communication Technology
Reference
www.w3schools.com
www.php.net
Friday, November 23, 2018 25

More Related Content

DOCX
Mca5010 web technologies
DOCX
Mca5010 web technologies
PPTX
0 csc 3311 slide internet programming
PPTX
PHP-introduction
KEY
CICONF 2012 - Don't Make Me Read Your Mind
PDF
PHP and MySQL : Server Side Scripting For Web Development
PDF
User authentication module using php
PDF
Form Validation NG
Mca5010 web technologies
Mca5010 web technologies
0 csc 3311 slide internet programming
PHP-introduction
CICONF 2012 - Don't Make Me Read Your Mind
PHP and MySQL : Server Side Scripting For Web Development
User authentication module using php
Form Validation NG

Similar to PHP Form Handling (20)

PPT
Lecture7 form processing by okello erick
PPTX
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
PPTX
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
PDF
JSON-RPC Proxy Generation with PHP 5
PDF
Web Development Course: PHP lecture 2
PDF
Step4 managementsendsorderw
PPTX
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
PDF
HTML::FormFu talk for Sydney PM
PPTX
APEX connects Jira
PDF
Intro to Php Security
DOCX
Tshepo morailane(resume)
PPT
PHP-04-Forms.ppt
PPT
Developing A Real World Logistic Application With Oracle Application - UKOUG ...
PPT
Create a web-app with Cgi Appplication
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
PPTX
Lesson 1
PPT
PHP Security
Lecture7 form processing by okello erick
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
JSON-RPC Proxy Generation with PHP 5
Web Development Course: PHP lecture 2
Step4 managementsendsorderw
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
HTML::FormFu talk for Sydney PM
APEX connects Jira
Intro to Php Security
Tshepo morailane(resume)
PHP-04-Forms.ppt
Developing A Real World Logistic Application With Oracle Application - UKOUG ...
Create a web-app with Cgi Appplication
Tutorial_4_PHP
Tutorial_4_PHP
Tutorial_4_PHP
Tutorial_4_PHP
Lesson 1
PHP Security
Ad

More from Achchuthan Yogarajah (10)

PPTX
Managing the design process
PPTX
intoduction to network devices
PPTX
basic network concepts
PPTX
4 php-advanced
PPTX
3 php-connect-to-my sql
PPTX
Introduction to Web Programming
PPTX
Language Localisation of Tamil using Statistical Machine Translation - ICTer2015
PPTX
PADDY CULTIVATION MANAGEMENT SYSTEM
PPTX
Statistical Machine Translation for Language Localisation
PDF
Greedy Knapsack Problem - by Y Achchuthan
Managing the design process
intoduction to network devices
basic network concepts
4 php-advanced
3 php-connect-to-my sql
Introduction to Web Programming
Language Localisation of Tamil using Statistical Machine Translation - ICTer2015
PADDY CULTIVATION MANAGEMENT SYSTEM
Statistical Machine Translation for Language Localisation
Greedy Knapsack Problem - by Y Achchuthan
Ad

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Classroom Observation Tools for Teachers
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Pre independence Education in Inndia.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Insiders guide to clinical Medicine.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Classroom Observation Tools for Teachers
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
VCE English Exam - Section C Student Revision Booklet
Module 4: Burden of Disease Tutorial Slides S2 2025
Pre independence Education in Inndia.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Microbial diseases, their pathogenesis and prophylaxis
Anesthesia in Laparoscopic Surgery in India
Week 4 Term 3 Study Techniques revisited.pptx
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf

PHP Form Handling

  • 1. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology National Diploma in Information and Communication Technology PHP :2-FORM-HANDLING> K72C001M07 - Web Programming 11/23/2018 2-FORM-HANDLING 1
  • 2. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology HTML Form //login.html <html> <body> <form action="login_get.php" method=“get"> Username: <input type="text" name="userName"><br> Password: <input type="text" name="password"><br> <input type="submit"> </form> </body> </html> 11/23/2018 2-FORM-HANDLING 2
  • 3. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology When to use GET? • Information sent from a form with the GET method is visible to everyone . • All variable names and values are displayed in the URL. • GET also has limits on the amount of information to send. • The limitation is about 2000 characters. • The variables are displayed in the URL, it is possible to bookmark the page. • This can be useful in some cases. • GET may be used for sending non-sensitive data. • Note: GET should NEVER be used for sending passwords or other sensitive information! 11/23/2018 2-FORM-HANDLING 3
  • 4. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology HTTP GET method //login_get.php Welcome <?php echo $_GET["userName"]; ?> <br> Your Password is: <?php echo $_GET["password"];?> 11/23/2018 2-FORM-HANDLING 4
  • 5. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology When to use POST? • Information sent from a form with the POST method is invisible to others. • All names/values are embedded within the body of the HTTP request. • No limits on the amount of information to send. • Supports advanced functionality such as support for multi-part binary input while uploading files to server. • It is not possible to bookmark the page. • Developers prefer POST for sending form data. 11/23/2018 2-FORM-HANDLING 5
  • 6. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology HTTP POST method //login_post.php Welcome <?php echo $_POST["userName"]; ?><br> Your Password is: <?php echo $_POST["password"];?> 11/23/2018 2-FORM-HANDLING 6
  • 7. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Exercise (1): Form – Sign up • Write a program to display entered details of following interface • Method = POST 11/23/2018 2-FORM-HANDLING 7 Last Name First Name E-mail Password Conform Password Sign up
  • 8. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Exercise (2): Form – Sign in • Write a program to check user name and password correct or not. • Give message successfully login or unauthorized access. • Use your own user name and password • Login.html • Login.php 11/23/2018 2-FORM-HANDLING 8 User Name Password Sign in
  • 9. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Exercise (2): Answer • Login.html <html> <body> <h1>Login Form</h1> <form method="POST" action=“Login.php"> <p> Name </p> <input type="text" name="name" size=20 /> <p> Password </p> <input type="password" name="pass" size=20 /> <input type="submit" name="login" value="login" /> </form> </body> </html 11/23/2018 2-FORM-HANDLING 9
  • 10. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Exercise (2): Answer • Login.php <?php if(($_POST['name']=="user") && ($_POST['pass']=="pass")) echo "<h1> Hello ".$_POST['name']."</h1>"; else echo "<h2> Access Denied </h2>"; ?> 11/23/2018 2-FORM-HANDLING 10
  • 11. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology isset( $var) • Returns TRUE if var exists and has value other than NULL. FALSE otherwise. $var = ''; // This will evaluate to TRUE so the text will be printed. if (isset($var)) { echo "This var is set so I will print."; } $a = "test"; $b = "anothertest"; var_dump(isset($a)); // TRUE 11/23/2018 2-FORM-HANDLING 11
  • 12. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Values of Checked Checkboxes • Example: checkbox.php <h2>Select your technical exaposer:</h2> <form action="#" method="post"> <input type="checkbox" name="check_list[]" value="C/C++"><label>C/C++</label><br/> <input type="checkbox" name="check_list[]" value="Java"><label>Java</label><br/> <input type="checkbox" name="check_list[]" value="PHP"><label>PHP</label><br/> <input type="submit" name="submit" value="Submit"/> </form> 11/23/2018 2-FORM-HANDLING 12
  • 13. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Values of Checked Checkboxes • Example: checkbox.php <?php if(isset($_POST['submit'])){ if(!empty($_POST['check_list'])){ foreach($_POST['check_list'] as $selected){ echo $selected."</br>"; }}} ?> 11/23/2018 2-FORM-HANDLING 13
  • 14. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Value of Select Option - single • Example: select_option.php <form action="#" method="post"> <select name="Color"> <option value="Red">Red</option> <option value="Green">Green</option> <option value="Blue">Blue</option> <option value="Pink">Pink</option> <option value="Yellow">Yellow</option> </select> <input type="submit" name="submit" value="Get Selected Values" /> </form> 11/23/2018 2-FORM-HANDLING 14
  • 15. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Value of Select Option - single • Example: select_option.php <?php if(isset($_POST['submit'])){ $selected_val = $_POST['Color']; echo "You have selected :" . $selected_val; } ?> 11/23/2018 2-FORM-HANDLING 15
  • 16. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Value of Select Option - multiple • Example: select_option_multiple.php <form action="#" method="post"> <select name="Color[]" multiple> <option value="Red">Red</option> <option value="Green">Green</option> <option value="Blue">Blue</option> <option value="Pink">Pink</option> <option value="Yellow">Yellow</option> </select> <input type="submit" name="submit" value="Get Selected Values" /> </form> 11/23/2018 2-FORM-HANDLING 16
  • 17. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Get Value of Select Option - multiple • Example: select_option_multiple.php <?php if(isset($_POST['submit'])){ foreach ($_POST['Color'] as $select) { echo "You have selected : $select <br/>"; } } ?> 11/23/2018 2-FORM-HANDLING 17
  • 18. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields • Example: signup.php <html> <head> <title>Sign-Up</title> <style> body { margin: auto; width: 500px; } div { padding: 10px; } div span { color: red; } </style> </head> 11/23/2018 2-FORM-HANDLING 18
  • 19. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields <body> <h3>Registration Form</h3> <?php $nameErr = $userNameErr = $passwordErr = $cpasswordErr= ""; $fullname = $email = $userName = $gender = $password = $cpassword = null; if(isset($_POST['submit'])){ if (empty($_POST["name"])) { 11/23/2018 2-FORM-HANDLING 19
  • 20. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields $nameErr = "Name is required"; } else { $fullname = $_POST['name']; } if (empty($_POST["user"])) { $userNameErr = "Username is required"; } else { $userName = $_POST['user']; } 11/23/2018 2-FORM-HANDLING 20
  • 21. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields if (empty($_POST["pass"])) { $passwordErr = "Password is required"; } else { $password = $_POST['pass']; } $email = $_POST['email']; $gender = $_POST['gender']; 11/23/2018 2-FORM-HANDLING 21
  • 22. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields $cpassword = $_POST['cpass']; } ?> <form method="POST" action="#"> <div>Name<input type="text" name="name" /><span>*<?php echo $nameErr; ?></span></div> <div>Email <input type="text" name="email"></div> <div>Gender: <input type="radio" name="gender" value="Female" checked>Female <input type="radio" name="gender" value="Male">Male</div> 11/23/2018 2-FORM-HANDLING 22
  • 23. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields <div>UserName <input type="text" name="user"><span>*<?php echo $userNameErr; ?></span></div> <div>Password <input type="password" name="pass"><span>*<?php echo $passwordErr; ?></span></div> <div>Confirm Password<input type="password" name="cpass"></div> <div><input id="button" type="submit" name="submit" value="Sign-Up"></div> </form> <?php echo' <div>Name : '.$fullname.'</div> 11/23/2018 2-FORM-HANDLING 23
  • 24. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Required Fields <div>Email : '.$email.' </div> <div>UserName : '.$userName.' </div> <div>Gender : '.$gender.' </div> <div>Password : '.$password.' </div> <div>Confirm Password : '.$cpassword.'</div> '; ?> </body> </html> 11/23/2018 2-FORM-HANDLING 24
  • 25. Sri Lanka-German Training InstituteDepartment of Information and Communication Technology Reference www.w3schools.com www.php.net Friday, November 23, 2018 25