|
It's a function you will have to create.
Depending on how many valid codes there will be, it might be better to handle it server side (ASP ASP.NET PHP) where you could have the codes in a database.
It could be done client side provided there are not many codes as they would have to be embedded into the page code or if the codes have an identifiable pattern.
IF this meant to be secure(ish) or to provide discounts it MUST be done server side, otherwise anyone could view the source and find out the codes.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|