Welcome to WebmasterWorld Guest from 54.163.25.166

Forum Moderators: ocean10000

Message Too Old, No Replies

Script-coding needed

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

Full Member

10+ Year Member

joined:Dec 1, 2004
posts:320
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 4, 2002
posts:666
votes: 0


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

Full Member

10+ Year Member

joined:Dec 1, 2004
posts:320
votes: 0


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

Full Member

10+ Year Member

joined:Dec 1, 2004
posts:320
votes: 0


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 2, 2003
posts:1184
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
votes: 0


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

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

Response.write myGUID

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members