Welcome to WebmasterWorld Guest from 54.226.241.8

Forum Moderators: ocean10000

Message Too Old, No Replies

Script-coding needed

     

fiu88

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///

Krapulator

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?

fiu88

6:43 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



doesnt really matter.. we can currently create anything alpha-numeric

fiu88

5:25 am on Oct 28, 2005 (gmt 0)

10+ Year Member



ttt

Easy_Coder

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

aspdaddy

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

Hot Threads This Week

Hot Threads This Month