radcliffe667
New member
i am new to php programming and i am not sure why it is not working!
HTML CODE SEGMENT:
<h3> Comment Section</h3>
<p> Please select a topic you wish to comment on </p>
<form action="coding.php" method="post">
First name: <input type="text" name="FirstName" size="15"/><br />
Last name: <input type="text" name="LastName" size="15"/><br />
Subject:
<input type="radio" name="Subject" value="Culture."/>Culture.
<input type="radio" name="Subject" value="Entertainment."/>Entertainment.
<input type="radio" name="Subject" value="History."/>History.
<input type="radio" name="Subject" value="Other."/>Other.<br />
<p> Comments: <textarea name="Comments" cols="50" rows="3"></textarea> <br /> </P>
Submit: <input type="submit" value="Submit"/>
</form>
</body>
(please be aware that as it is a segment of my code it does have the relevent <html> tags and <body> tags they are just not included)
PHP CODE: ( saved as coding.php)
<html>
<body>
First Name: <?php echo $_POST['FirstName']; ?><br />
Last Name: <?php echo $_post['LastName]; ?> <br />
Comments:<br />
<?php echo $_POST['Comments']; ?>
</body>
</html>
- For some reason it does'nt echo the FirstName, Last Name, or Comments
Regards.
HTML CODE SEGMENT:
<h3> Comment Section</h3>
<p> Please select a topic you wish to comment on </p>
<form action="coding.php" method="post">
First name: <input type="text" name="FirstName" size="15"/><br />
Last name: <input type="text" name="LastName" size="15"/><br />
Subject:
<input type="radio" name="Subject" value="Culture."/>Culture.
<input type="radio" name="Subject" value="Entertainment."/>Entertainment.
<input type="radio" name="Subject" value="History."/>History.
<input type="radio" name="Subject" value="Other."/>Other.<br />
<p> Comments: <textarea name="Comments" cols="50" rows="3"></textarea> <br /> </P>
Submit: <input type="submit" value="Submit"/>
</form>
</body>
(please be aware that as it is a segment of my code it does have the relevent <html> tags and <body> tags they are just not included)
PHP CODE: ( saved as coding.php)
<html>
<body>
First Name: <?php echo $_POST['FirstName']; ?><br />
Last Name: <?php echo $_post['LastName]; ?> <br />
Comments:<br />
<?php echo $_POST['Comments']; ?>
</body>
</html>
- For some reason it does'nt echo the FirstName, Last Name, or Comments
Regards.