Closed Thread
Results 1 to 10 of 10

Thread: add text to page script

  1. #1
    FWS Addict ozefrog is an unknown quantity at this point
    Join Date
    Jul 2001
    Location
    Australia
    Posts
    691

    add text to page script

    does anyone no of a script/or know the code to allow people to add text to a webpage by filling out a small form, just even to fill out their name?

    something like a news script that allows users to add news would also be good, but would prob run on MySQL (i dont currently have access to a mysql db)

    from the little bit of php i know i doubt this would b hard but im still scratching my head (15yrs old and already goin bold, lol)

    i will b most grateful if you could help me

    thanx
    CheapHumor :: Where the laughs are at!
    STA Forums - Join now!

  2. #2
    Guest BABAMAMA is an unknown quantity at this point
    Join Date
    Dec 2001
    Posts
    36

    Wink

    YOU can use a perl script and write the message(written by your users) into a file with a file extension (.js).
    Then on your html page, you can use javascript to output what's in the .js file!

  3. #3
    FWS Addict ozefrog is an unknown quantity at this point
    Join Date
    Jul 2001
    Location
    Australia
    Posts
    691
    im not a real big fan of perl......its slower than php and its harder to learn.....
    CheapHumor :: Where the laughs are at!
    STA Forums - Join now!

  4. #4
    Guest BABAMAMA is an unknown quantity at this point
    Join Date
    Dec 2001
    Posts
    36

    Wink

    who said perl is slower???
    Even the cobalt RAQ control panel is written in Perl!

    if you need PHP, then Yupapa can't help you.

  5. #5
    FWS Addict ozefrog is an unknown quantity at this point
    Join Date
    Jul 2001
    Location
    Australia
    Posts
    691
    my sites are hosted on free servers witch would already b slow enough......., perl/cgi takes more system resources to execute where as php doesnt.
    CheapHumor :: Where the laughs are at!
    STA Forums - Join now!

  6. #6
    FWS Addict megapuzik is an unknown quantity at this point megapuzik's Avatar
    Join Date
    Dec 2001
    Location
    Israel
    Posts
    694
    make a text file to store your data, and then make the forum you want, and then make the php script that will read your file and print it...

    if you dont understand something, just ask....
    -

  7. #7
    FWS Addict ozefrog is an unknown quantity at this point
    Join Date
    Jul 2001
    Location
    Australia
    Posts
    691
    ok, thanx for ya help but i had a good idea, to use a guestbook script and modify it to my needs, the way it is now is perfect!

    u can take a sneak peak at some sections of my site to test the script if you like......i need a few more jokes!

    http://www.cheaphumour.com.kg/
    CheapHumor :: Where the laughs are at!
    STA Forums - Join now!

  8. #8
    FWS Addict megapuzik is an unknown quantity at this point megapuzik's Avatar
    Join Date
    Dec 2001
    Location
    Israel
    Posts
    694
    OK, good luck.
    -

  9. #9
    striking reality niv has disabled reputation niv's Avatar
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    7,344
    There's newspro as well, and you can use regular expressions to get rid of the crap that it puts into the news.txt file.

    Also, in rebuttal to ozefrog's opinion on Perl:

    Saying PHP is faster than Perl is downright incorrect, there are going to be many situations when that will not be the case. It's like saying the selection sort is always faster than the insertion sort or the bubble sort. There are conditions that have to be met in order for that to be the case.
    the poster formerly known as needcgispace - NOTHING!
    Obsidian Hosting Networks - Head Admin - Changing the way you play the game.
    URL: http://www.obhost.net/
    IRC: irc.gamesurge.net/obhost

  10. #10
    FWS Addict ozefrog is an unknown quantity at this point
    Join Date
    Jul 2001
    Location
    Australia
    Posts
    691
    im mainly talking free server wise, take portland.co.uk for instance, look how many accounts they have crammed on their servers, and look how slow the execution of php/mysql/perl is there!
    CheapHumor :: Where the laughs are at!
    STA Forums - Join now!

Closed Thread

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