Topic awaiting preservation: FeedBack Form... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
posted 04-03-2004 10:16
Hi guys, I need some help with my site. I'm trying to make a feedback form so i can read the feedback on another page or in an email but i don't want to use any server side stuff like PHP etc etc. Can anyone help me out?? |
Maniac (V) Inmate From: Seoul, Korea |
posted 04-03-2004 10:54
I'm not 100% sure I understand you, but I'll give it a shot. I understand everything but the "on another page" part. So you're saying that you want people to be able to either a) send you a feedback e-mail, or b) post a comment that will appear on a comments page? code: <form name = "feedback" method = "post" action = "mailto:name@address?subject=Feedback">
|
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
posted 04-03-2004 11:44
I know that i can put a mailto in the form but i don't want anyone to find out my email. what was that thing you said about a comments page? how do i get that going?? |
Maniac (V) Inmate From: Seoul, Korea |
posted 04-03-2004 12:37
quote:
|
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
posted 04-05-2004 09:03
ok I finally set out to use PHP the last few days and I've made a feedback form but i got a problem. Everythng works fine except when I say to send the feedback he only posts the "name" and "email" not the "message". This is what my pages look like: code: <form action="feedback.php" method="post" name="mail">
code: <b> Sender: </b> <?php echo $_POST["name"]; ?>,<br>
|
Maniac (V) Inmate From: Seoul, Korea |
posted 04-05-2004 09:28
Yup, this should go into the server-side forum, but I don't have the power to do that. Anyway, the answer to your problem is very simple. Take a close look at your code. What is the name of the textarea where the message goes? Now what name are you referring to in your PHP? They should be the same, but they're not--just change "textareaName" to "message" in your HTML and you'll be all set. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-05-2004 10:00
it's also a good idea to put a 'error_reporting(E_ALL);' at the beginning of your php code - that way php will warn you about unset variables. |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
posted 04-05-2004 10:24
Ok I got th feedback form running but what if I wanted to add some validation to it you know like if I want to have all the fields neccessary then what should I add to the script? |
Maniac (V) Inmate From: Seoul, Korea |
posted 04-05-2004 12:10
Did you take a look at the tutorial I posted above? Not that I don't want to help, but I think going through that tutorial will answer a lot of your questions (about things like validation, for example). It's very well done, and easy to modify. For your convenience, here it is again: |