Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: ocean10000

Script-coding needed

   
5:22 am on Oct 19, 2005 (gmt 0)

10+ Year Member



We have an asp based site...
I need code or a script that can generate One Time use coupon codes///
Any help or ideas would be greatly appreciated...If you ahev a solution, let me know how it works and what you need for compensation///
3:59 am on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the desired format of your coupon codes?
Eg Numeric, alphanumeric, alpha only? Length?
6:43 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



doesnt really matter.. we can currently create anything alpha-numeric
5:25 am on Oct 28, 2005 (gmt 0)

10+ Year Member



ttt
9:07 am on Oct 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Response.Write "GUID = " & CreateGUID()

Function CreateGUID()
Randomize Timer
Dim tmpCounter,tmpGUID
Const strValid = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
For tmpCounter = 1 To 20
tmpGUID = tmpGUID & Mid(strValid, Int(Rnd(1) * Len(strValid)) + 1, 1)
Next
CreateGUID = tmpGUID
End Function

1:41 pm on Oct 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



myGUID = createobject("scriptlet.typelib").guid

myGUID= replace(myGUID, "}", "")
myGUID= replace(myGUID, "{", "")
myGUID= replace(myGUID, "-", "")
myGUID= replace(myGUID, "'", "")

Response.write myGUID

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month