Professional Documents
Culture Documents
WT 13
WT 13
AIM:write a HTML page that contain textbox,submit/reset button,Write PHP program to display this
information and also store into text file.
input:
expe13.php:
<html>
<head>
<title>Exp13</title>
</head>
<body>
<form method='POST'>
</form>
<?php
if($_SERVER['REQUEST_METHOD']=='POST')
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$mail = $_POST['email'];
200130111058
$data="Your first name : $firstname\nYour Last name : $lastname\nYour mail : $mail\n\n";
$file=fopen('info.txt','a+');
fwrite($file,$data);
fclose($file);
?>
</body>
</html>
Output:
200130111058
Conclusion:
Sign:
200130111058