Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <p>
- WELCOME TO THE STUDENT PORTAL
- </p>
- </head>
- <body>
- <form action="details.php" method="post" enctype="multipart/form-data">
- <label>Student_id</label>
- <input type="integer" name="Student_id" id="Student_id">
- <label>StudentName</label>
- <input type="text" name="StudentName" id="StudentName">
- <label>Surname</label>
- <input type="text" id="Surname"name="Surname">
- <label>Parent</label>
- <input type="text" name="Parent" id="Parent">
- <input type="submit"/>
- </form>
- </body>
- </HTML>
Expand|Select|Wrap|Line Numbers
- <?php
- $Student_id = $_REQUEST['Student_id'];
- $StudentName = $_REQUEST['StudentName'];
- $Surname = $_REQUEST['Surname'];
- $Parent = $_REQUEST['Parent'];
- echo("Student_id:" . $Student_id);
- echo("Student Name:" . $StudentName);
- echo("Surname:" . $Surname);
- echo("Parent:" . $Parent);
- ?>
**ON THE PHP PAGE IT RETURNS THE PHP'coding INSTEAD ON THE VALUES ENTERED**