2023-08-23
<html>
<head></head>
<body>
<form action="...." method="post">
<input name="..." value="Arun" />
<input name="..." value="25" />
<input name="..." value="BCA" />
<input type="submit" value="submit">
</form>
<?php
// output a single value
echo ...;
// receive all data in an array
$fields = ......
// output or process all data
foreach (...) {
echo $value;
}
?>
</body>
</html><form action="..." method="post">
<input name="...[firstname]" value="arun" />
<input name="...[age]" value="25" />
<input name="...[course]" value="BCA" />
</form>
// receive all data in an array
$fields =
// read out fields by names
$firstname = $student['firstname'];
$familyname = $student['age'];
$password = $student['course'];
// output or process all data
foreach (...) {
echo $key, $value;
}