Re: Building a Feedback Form in PHP
Please forgive me for being ignorant, but I dont know or understand how the above reply relkates to the form that you supply inside the web building software. if that form is useless why is it there.
I thought that Bluevoda was suppose to be user friendly, The reply to a novice like myself for the lack of a better word is greek. I tried to open the feedback.html in my browser but get an error message sending me on a google search.
Sorry but I have no unsderstanding of what I am told to do.
is this somthing that I have to change within the form?
When the content is send to feedback.php, the content in the text field
“name” will be put into the variable $name. Likewise the content of email
and comments will be put into the variable $email and $comments
respectively.
So if you’ve created additional fields, you can just place the dollar sign $ in
front of the name, to declare a variable containing the content collected in
that particular field.
You’ll also noticed that we’ve declared another variable $msg that will make
a copy of the different variables and this will be the body of our email. The
t before the variable will return a tab, while the n after the variable name
will make our move the content that follows to the next line. They basically
just provides some formatting to our message.
The $recipient variable will contain the email address where you want the
data collected to be emailed, while the $subject variable will contain the
email subject. $mailheaders is another variable that will contain the from
email address and reply-to email address. We want a "From:" header so
that we know who is sending the email to us and can reply to him/her if we
need to. The From & Reply-to are set to the senders address. Now here
comes the magic! mail() is a special PHP function that allows you to send
an email with only one line of coding. In general the mail function is as
follows:
Lost
Professor DXer
"I know you think you heard what I said, BUT I am not sure that what you heard, is what I meant" (Listening is the key)