validate on input. This way you always know you have the right data. Doing
this the other way might involve you having to say: "Error, could not show
data because it is invalid". Depending on what you do with your data on
output, this message can be either small or big issue.
TK
-----Original Message-----
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 3:28 PM
To: CF-Talk
Subject: Storing URL's
Hey all,
So, I'm sure we've all dealt with storing URL's that users can enter. And,
no matter how much you say, "Start the url with http://" or "start the URL
with www" someone will do it the opposite way.
So, the question is - do you check the format of the url on the insert and
clean them so they're all the same? Or, do you do it on the output? Either
way, are you just checking for the existence of http://, or are you doing
something else super fantabulistic with regex or something that I'm not
thinking of?
-d
--
Deanna Schneider
UWEX-Cooperative Extension
Interactive Media Developer
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

