PHP Help
- Started
- Last post
- 14 Responses
- bolus
Hello fellow nt'rs, i need some help. I am an absolute php/mysql noob, and i need to get something done.... I have a small guesbook on my website which is being terrorised by someone... Anyone able to help me modify the script to allow < a > and < u > tags only... I know I have to enter something like this:
strip_tags ( $_ POST*['bericht'])
and/or
$ string = strip_tags($*string, '*a**b**i**u*');
(minus the *'s)
- bolus0
ow and HELP
- maximillion_0
strip_tags($text, '');
- Witt0
- akoni0
listen to Witt
- bolus0
listen to Witt
akoni
(Jun 14 07, 09:02)i always do, and everyone should
- maximillion_0
sorry i didnt realise it stripped the code
- bolus0
as said, i know nothing about php, is someone willing to modify the file for me? the thing witt suggested is what i need....
thanks in advance
- bolus0
no love?
- Witt0
don't listen to me!
i know very very little of php - just thought that that was what you wanted. but i guess you can just copy the allowedtags function and add or edit the tags (1=allowed 0=denied) and edit the output tag.
if you don't get any help meanwhile, i can try it later tonight after dinner (but must go out right now). always good to know that kind of stuff.
i'll leave my e-mail in your inbox.
- heavyt0
i can get you going.
where are your files?
- bolus0
thanks witt, anybody else cares to take a look:
I need this implemented:
http://chxo.com/chxo-scripts/saf… into this guestbook:http://www.janpostma.com/gastenb…
thanks in advance
- maximillion_0
bolus, the code on the link ^ does exactly what yr asking for
- Witt0
I'm at it, bolus - but I'm afraid I can't help you.
It's too much for me. I can't merge the script I posted with your guestbook.
The thing I posted was a bookmark I had in my PHP learning folder and I thought it could be useful for you - but after going through it and trying to merge it I found stuff way above my head right now.
I'm sorry. I really would like to help.
Sidenote: the posts of that marquee guy called "robin" (what I can read from dutch tells me he's teasing you)... I think he has found a way into your php is playing with it. also, your php page defines the access to your database (username, password).
It's not a secure method.
Those should be elsewhere like in the .htaccess file. and access a php file differently. That robin is really a bird.
Also, you must/can clear your database file from those entries you don't like. Also you could configure the DB file to accept only what you want and have not so much scripts running coz it burdens the server.
But that's hard work.
I'm sorry I can't help you. It's way above my knowledge of this stuff.
- Witt0
I'm sending you a gastenboek.php file with the ^ maximillion_ function where i think it works. I don't think that's enough to keep that robin off your path though.
You may need to add unwanted tags as they come along. jesus, that marquee stuff wouldn't cross anyone's mind but a pure devil. I added that marquee one, btw.
upload it and see how it runs, keeping a copy of the original gastenboek.php elsewhere so you can replace it if it cracks up. try to upload images, links, marquees and whatever crosses your mind (I have not a server here right now so I can't test the php).