Results 1 to 7 of 7

Thread: Suggestion/Complaint box

  1. #1
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Suggestion/Complaint box

    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.

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    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?

  6. #6
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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)
    Code:
    <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 Code:
    <?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.

  7. #7
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by FireStorm89
    I am only 17 years old, I can read and understand everything fine
    so then...

    Quote Originally Posted by shachi
    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)
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •