Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP guestbook that does not output tables

    I searched through the archives, and I've searched just about everywhere, and only halfway through hotscripts, I thought I just might ask out of fear of starting another guestbook thread.

    Where can I find a PHP guestbook, that does not apply tables or font tags... All I want it to do is put in semantic tags (headers or something) that I can control via CSS -- it can be linked to a text document, that's fine. Simple, nothing major, but I've gone through hundreds and only see tables and font tags and center tags...
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    You'll find that almost all of them will be done that way. If you can show me how you want it to be presented I could knock up a guestbook for you

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll shoot you a link on the site for that if you do, or I can give you some cash or a amazon gift if ya' got a wishlist, whatever's your preference
    It's for the nieces site:
    http://www.alexisbarbosa.com/

    Essentially all I would need is it to spit out the follow:
    Code:
    <div>
    <h3>Name of who signed</h3>
    <blockquote>What they had to say</blockquote>
    <cite>Date of signature</cite>
    </div>
    That gives me the power to style that puppy via CSS without classes, since it'll already be in the 'content' id. I don't think I need anything special like word filtering, just the PHP for my form to send to, and it writes either a SQL database or text file and just keeps dropping the newest comment on the page, whatever works best (and directions on how to work it would be helpful).

    Thanks Nightfire! Let me know a way to repay you!
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Will get onto that for you right now. No need for payment as it's a simple thing to do really. Only takes 20 mins of my time - if that.

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Here it is. I've added a readme to help you, just incase. It runs from mysql, all explained in the readme anyway. (see attachment). Easy for you to fit into your site
    Attached Files Attached Files

  • #6
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in phpMyAdmin I have these tabs:
    Structure and SQL

    In Structure I can create a new table by adding a name and fields - is the name just the first part of that text I am to paste over, the field in the {} section?

    Or am I pasting it into the SQL part

    And of course you'd get something, I'm just debating the popcorn maker or resevior dogs
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #7
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind, got it figured out... however, now it says:
    Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/alexisbarbosa.com/httpdocs/guestbook.php:7) in /home/httpd/vhosts/alexisbarbosa.com/httpdocs/guestbook.php on line 34
    Any ideas?
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #8
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Oops, forgot to delete something. delete thie line that says

    header($_SERVER['PHP_SELF']);

    Line 10 on the main page

  • #9
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perfect! -- that rocks:

    Would you like a hook up in the comments for this?
    Last edited by bradyj; 10-08-2004 at 02:26 AM.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #10
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Nah, it's ok


  •  

    Posting Permissions

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