...

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



nefrett
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.

nefrett
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

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

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum