Announcement

Collapse
No announcement yet.

Guestbook?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guestbook?

    Hello everybody,
    I am thinking of making a PHP guest book. I have no idea how to start.
    I am thinking about using a MySQL Database.
    I know how to do this, but would it make it too difficult for the user?
    I was also thinking about using a text file for each entry, but this would probably be slow, and resource consuming.


    Which should I use?
    I want to make it as user friendly, fast, and efficient as possible.


    Thank you,
    Dennis Wrenn


    PS:
    how would I get a value out of a text box, and a text area box??

    like if I had a text area box, and a textbox

    Code:
    _______________
    | some text here   | '//text area
    |                            | '//name: ta
    |                            |
    |______________|
    
    _______________
    |Text                     | '//text box
    |______________| '//name: tb
    how would I get the value of ta and tb?

    Thanks
    Visual Basic, HTML, PHP, SQL, ASP, JavaScript, C++, Perl

    PHP 4.0.6
    MySQL 3.23.39
    Windows 2000

  • #2
    If you have PHP set to automatically parse HTTP post vars then all you have to do is (in your ACTION file):

    print( "The value of text area is: $ta, the value of text box is $tb!" );

    PHP will create them for you!

    If you don't have them, then something like this will be what you need:

    $HTTP_POST_VARS[ ta ];

    and

    $HTTP_POST_VARS[ tb ];
    Matt
    Sybase DBA / PHP fanatic
    Sybase v. MySQL v. Oracle | Why I don't like MySQL | Download Sybase TODAY! | Visit DBForums.com!

    Comment


    • #3
      Thank you very much!
      it worked like a charm.
      Visual Basic, HTML, PHP, SQL, ASP, JavaScript, C++, Perl

      PHP 4.0.6
      MySQL 3.23.39
      Windows 2000

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X