+ Reply to Thread
Results 1 to 5 of 5

Thread: comment and display

  1. #1
    shaunNO2007's Avatar
    shaunNO2007 is offline x10Hosting Member shaunNO2007 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    57

    Cool comment and display

    hey could it be poss to make or just show me how to make a comment box on my website that when people wite what thay want in it. then it goes to a database and that and then display on the website could you help please

    thank you very much

    Shaun

  2. #2
    satbir is offline x10 Elder satbir is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    547

    Re: comment and display

    What is your site address?

    Asking so because depending on what language/ software you are using for your site will define the same.

  3. #3
    Smith6612's Avatar
    Smith6612 is offline <<< wants a Turkey Smith6612 has a spectacular aura about
    Join Date
    Dec 2007
    Location
    Exploded
    Posts
    6,485

    Re: comment and display

    Quote Originally Posted by shaunNO2007 View Post
    hey could it be poss to make or just show me how to make a comment box on my website that when people wite what thay want in it. then it goes to a database and that and then display on the website could you help please

    thank you very much

    Shaun
    Are you thinking about a Guest book? That'll be a starting point if so...

    My signature likes cookies! Do you? :D

  4. #4
    shaunNO2007's Avatar
    shaunNO2007 is offline x10Hosting Member shaunNO2007 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    57

    Re: comment and display

    here is my address crazynoise.x10hosting.com plus well an guest book in not what i have in mide just a really simple comment box what when submited it send the data to a database and then send it bk to the website so it is being displayed

    Like This...

    <?php

    define("DB_SERVER", "localhost");
    define("DB_USER", "your_name");
    define("DB_PASS", "your_pass");
    define("DB_NAME", "your_dbname");



    ?>


    <form id="form2" method="post" action="comments.php">
    <p>
    <label>
    <textarea name="comment" cols="45" rows="8" id="comment" ></textarea>
    <br>

    <input name="Submit" type="submit" id="submit" value="Submit Your Comment" onclick="this.disabled=true, (comment.disabled=true)" />
    </label>
    </p>
    <div>
    <p>Comments<br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 <br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 <br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 </p>
    <p>&nbsp;</p>
    </div>
    <p>&nbsp;</p>
    </form>
    Last edited by shaunNO2007; 01-27-2008 at 12:14 PM. Reason: just making the code bit more better :) :P

  5. #5
    thepartingtons82 is offline x10Hosting Member thepartingtons82 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    1

    Thumbs up Re: comment and display

    Quote Originally Posted by shaunNO2007 View Post
    <?php

    define("DB_SERVER", "localhost");
    define("DB_USER", "your_name");
    define("DB_PASS", "your_pass");
    define("DB_NAME", "your_dbname");



    ?>


    <form id="form2" method="post" action="comments.php">
    <p>
    <label>
    <textarea name="comment" cols="45" rows="8" id="comment" ></textarea>
    <br>

    <input name="Submit" type="submit" id="submit" value="Submit Your Comment" onclick="this.disabled=true, (comment.disabled=true)" />
    </label>
    </p>
    <div>
    <p>Comments<br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 <br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 <br />
    <br />
    this is a comment test where&nbsp;i would like the comment to be miss a line for the next comment or 2 </p>
    <p>&nbsp;</p>
    </div>
    <p>&nbsp;</p>
    </form>
    Hey, sorry for responding to such an old post...but I AM a new reader...heh heh.
    Anyways, I think the above code is awesome. I was trying to find exactly something like it...as I am probably newer than the original poster of this thread. I only know HTML and barely CSS. I'm learning more every day though.
    I was wonder what I needed to do after this code. IE// do I need to set a code on the page I want the users comments to appear on? perhaps create a table as well? something of the sort.
    I just want a simple option for my readers to leave a comment viewable to everyone.
    I appreciate any suggestions and advice you can offer.

+ Reply to Thread

Similar Threads

  1. Hiring PHP Coder, and Template Designer($$)
    By Arucard98 in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 02-06-2006, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers