I want to use Handle_Form.php

by rleequ
2 replies
I am quite new at this so bare with me. I am using Dreamweaver. I want to use a feedback form for people to tell me what they think about my site. I have a form which came in a package of scripts called "Form.html." It is a simple script which asks a few questions, (email, gender and it has a comments field) and it is attached ( I don't know if attached is the right word) to a Handle_form.php script which is below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Form Feedback</title>
</head>
<body>
<?php # Script 2.6 - handle_form.php (rewrite of Script 2.3)

// Create a shorthand for the form data.
// Use stripslashes() to combat Magic Quotes, if necessary.
$name = stripslashes($_POST['name']);
$comments = stripslashes($_POST['comments']);
// Not used: $_POST['age'], $_POST['gender'], and $_POST['submit'].

// Print the submitted information.
echo "<p>Thank you, <b>$name</b>, for the following comments:<br />
<tt>$comments</tt></p>
<p>We will reply to you at <i>{$_POST['email']}</i>.</p>\n";

?>
</body>
</html>
I have marked the part of the script that :confused: I THINK :confused: I need to modify in red. Can someone tell me if I am right and maybe how this needs to be modified? Does it need to be an herf like for instance.

Thanks in advance for your help guys "N" dolls

R'
#handleformphp
  • Profile picture of the author electrobooks
    Hi R,

    Unfortunatly your not right. The part you marked in red simply says that YOU (the site owner) will reply to them at the email address that they supplied.

    Looking at the script either a lot of code is missing or you didnt include it in the initial question.
    Either way the script that you put in the question does nothing at all other than possibly display that you will reply to them via an email they supplied in your form page.

    If there is no more code then you wont be notified of anything that they submit to you so you wont be able to reply.

    Hope that helps

    Chris
    {{ DiscussionBoard.errors[64591].message }}
    • Profile picture of the author rleequ
      Thanks: Your statements covered the other possibility for how the script would behave. I had hoped other wise but.....Oh Well.

      I did find a site which built the script I want as well as the feedback form html and all on the fly it also do this for free.

      It's called thesitewizard.com. Check it out.

      R'
      {{ DiscussionBoard.errors[66250].message }}

Trending Topics