View Full Version : Suggestion/Complaint box
FireStorm89
07-27-2006, 09:13 AM
can some1 please help me get a suggestion and a complaint box on my webpage so that I can get the suggestions/Complaints in my e-mail?
currently im using my guestbook on my website for that, but i need to get something on the site so they can give me suggestions and complaints in my e-mail... please help me!
my website is:
http://www.geocities.com/flamin_hot1023/
I am only 17 years old, I can read and understand everything fine, but i can't make nething. I hope that some1 can get me a messaging thing to use for complaints and suggestions.
shachi
07-27-2006, 09:51 AM
You either need a server side programming language like PHP or some services which let you add free comment forms in your website. I am sure geocities does not offer PHP or any other server side language so you can either choose the second option or call a PHP script on a different server and redirect to the original page after mail is sent.
FireStorm89
07-27-2006, 09:56 AM
I don't understand what u said, but i was hoping that some1 could make up a form for me so that it would send a message to my e-mail from a message box on the web page. that way it goes from the web page straight to my e-mail.
could some1 make up a form for me plz?
shachi
07-27-2006, 10:13 AM
I can sure make you a form but making forms doesn't send emails. You need something to mail you and that can only be done with PHP if you want it straight from the webpage.
FireStorm89
07-27-2006, 10:38 AM
I can sure make you a form but making forms doesn't send emails. You need something to mail you and that can only be done with PHP if you want it straight from the webpage.
ummm....yeah, i want to get it straight from the web page, would ne1 be able to help me get 1 of those?...like could u make me one?
shachi
07-27-2006, 01:55 PM
Yes I can make you one but you need a *PHP enabled* server. If you do have that then here's the code:
form.html (the html form)
<html>
<head>
</head>
<body>
<form action="mail.php" method="POST">
Name: <input type="text" name="name" id="name">
Email: <input type="text" name="mail" id="mail">
Subject: <input type="text" name="subject" id="subject">
Comments: <textarea name="comment" id="comment">Suggestions/comments here</textarea>
</form>
</body>
</html>
The php code:
mail.php (main server side)
<?php
$to = "your@email.here"
$from = $_POST["mail"];
$name = $_POST["name"];
$message = $_POST["comment"];
$subject = $_POST["subject"];
if(mail($to, $subject, $message, 'From: <'.$name.'>'.$from)){
echo "Mail ($subject), was successfully sent.";
} else {
echo "The email ($subject) could not be sent.";
}
?>
Replace the your@email.here to your email address.
That's it.
Hope it helps.
BLiZZaRD
07-27-2006, 11:57 PM
I am only 17 years old, I can read and understand everything fine
so then...
I am sure geocities does not offer PHP or any other server side language
Should have been enough...
Geocities (free) does NOT host php scripting. (although the pro version does, limited)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.