February 5th, 2002, 22:40
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
February 5th, 2002, 22:47
YOU can use a perl script and write the message(written by your users) into a file with a file extension (.js).
February 5th, 2002, 23:17
im not a real big fan of perl......its slower than php and its harder to learn.....
February 5th, 2002, 23:18
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.
February 5th, 2002, 23:25
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.
February 6th, 2002, 03:19
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....
February 6th, 2002, 03:28
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!
February 6th, 2002, 03:38
February 6th, 2002, 16:12
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.
February 6th, 2002, 22:59
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!