-
February 5th, 2002, 22:40
#1
FWS Addict
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
-
February 5th, 2002, 22:47
#2
Guest
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!
-
February 5th, 2002, 23:17
#3
FWS Addict
im not a real big fan of perl......its slower than php and its harder to learn.....
-
February 5th, 2002, 23:18
#4
Guest
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
#5
FWS Addict
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
#6
FWS Addict
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
#7
FWS Addict
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/
-
February 6th, 2002, 03:38
#8
FWS Addict
-
February 6th, 2002, 16:12
#9
striking reality
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
#10
FWS Addict
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks