Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Midterm Project

ID: 3631377 • Letter: M

Question

Ok people .. i am getting really annoyed can someone please tell me why is it when I hit the submit button the PhP page does not work? I have posted this once and someone was suppose to post the solution after a rating was posted however, he failed to hold up his end of the agreement.. Can someone please help It s due tomorrow evening and I am completely stuck.

<html>
<body>
<title> Midterm Project</title>

<h1>Your Information has been received</title>

<?php
Name:
echo $_POST["name"]; ?>!<br />
Email Address:
echo $_POST["email"]; !<br />
Issue:
echo $_POST["issues"];!<br />
Detail:
echo $_POST["testarea"];
?>!<br />

Explanation / Answer

(See Full Answer) You should not do it that way. The reason is that when PHP Compiler is parsing "" It doesn't understand what Name is. because you have written Name without any quotes or an echo command, it looks for "Name" in the functions list. But since there is nothing like that, you will get a syntax error. Would like to help on anymore questions you have. Please rate :) The correct way to do this is : Midterm Project Your Information has been received Name: !
Email Address: !
Issue: !
Detail: !