deep-wood
01-09-2006, 09:41 AM
hi!
im using this example from the w3c website...
<%
dim txt
txt="This is a beautiful day!"
response.write(Replace(txt,"beautiful","horrible"))
%>
it works, however, i need to adapt it, and not sure how. basicly, i want to make like a swear word filter for a guestbook....
so lets say txt = recordset("post") - and i did response.write(Replace(txt,"naughty_word","_a_good_word"))
thats fine. however, there are many more words then this....how would i adapt this code to do more replaces in that string. copying the replace line just writes the details again...
thanks all!
im using this example from the w3c website...
<%
dim txt
txt="This is a beautiful day!"
response.write(Replace(txt,"beautiful","horrible"))
%>
it works, however, i need to adapt it, and not sure how. basicly, i want to make like a swear word filter for a guestbook....
so lets say txt = recordset("post") - and i did response.write(Replace(txt,"naughty_word","_a_good_word"))
thats fine. however, there are many more words then this....how would i adapt this code to do more replaces in that string. copying the replace line just writes the details again...
thanks all!