View Full Version : coupon code but checking different way:)

06-10-2007, 01:01 PM
Hello my friends.. Sorry for my english

I want to use a coupon code system on my website, I looked all codes, but I want differently.

For example,
we have a text form, (<input type="text" )
when somebody enters the coupon code, the script will check it automatically if it is true or not..If it is true, right on the text form it will write "cuopon code is true", if not "coupon code is invalid"

I dont want to use mysql database..It has to be simple way..right coupon code may be store even in .dat file or notepad..
how can I do this ?

thank u.
Edit/Delete Message

Philip M
06-10-2007, 05:17 PM
This should be done server-side. JavaScript can not read from or write to a file. But you can possibly check by having pages named something like K48727.html, and if the user enters the correct promotional code K48727 into the textbox then if the page exists it can be loaded into an i-frame.

06-11-2007, 02:30 AM
ok how can I do this, then? Is there anything different way to apply coupon code simply? would u pls write them all with explanation

06-11-2007, 02:15 PM
Look into Ajax.