View Single Post

#1
Bookmark and Share!
[PHP] nasty double quotes and single quotes...
Old 2002-08-07

i'm doing a simple form so i can post news up on my site. i wan't to know:

(1) when i post a message through the form that uses double quotes or single quotes they are, odviusly, printed out like this \"\" or \'\' i tried:
$post = ereg_replace("\\", "", $post); but didn't work
how can i correct this?

(2) how can i make php detect that i want something to be a url... for instance me writing on the form:
[LINK]http://whatever.com/[LINK] and it printing out:
<a href="http://whatever.com/">http://whatever.com/</a>

thanx guys

s m i l e *
postbit arrow 10 comments | 438 views postbit arrow Reply: with Quote   
rufopr
Registered User
rufopr is offline
seperator
Posts: 12
2001-03-21
Age: 31
seperator

Ultrashock Member Comments: