super2424 wrote:Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\handle_form.php on line 24
I guess this is why it's not working.
That is not your initial problem that the variables are displayed instead of it's content.
If that would be your initial issue, you would get this error message after sending the form too.
But i guess that you request the form the wrong way.
super2424 wrote:Here's my script
<?php
ini_set ('display_errors', 1);
// Let me learn from my mistakes!
error_reporting (E_ALL | E_STRICT);
// Show all possible problems!
// This page receives the data from
feedback.html.
// It will receive: title, name, email,
response, comments and submit in //This is line 24.
$_POST.
// Create shorthand versions of the
variables:
$title = $_POST['title'];
$name = $_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
// Print the received data:
print "<p>Thank you, $title $name,
for your comments.</p>
<p>You stated that you found this
example to be $response and
added:<br />$comments</p>";
?>
Please wrap your code in code-BBTags, because:
- Your singleline line brakes are not visible here as single lined.
- I can't see why the line you marked should be line 24.
sorry, but i can't provide any help with that informations.
best wishes,
Altrea