Function getPassword(ByVal intLength)
    If intLength < 0 Then intLength = 8
    Dim strChars, i, strPass, intRnd
    strChars = "1abc2def3ghi4skl5mno6pqr7stu8vwx9yz"
    For i = 1 To intLength
        Randomize
        intRnd = CInt(Rnd() * (Len(strChars)-1)) + 1
        strPass = strPass & Mid(strChars, intRnd, 1)
    Next
    getPassword = strPass
End Function
strKode = getPassword(20)
se i din database om strKode findes. Hvis strKode kald getPassword(20) og
test igen indtil strKode ikke findes. Derefter skriver du til database og
sender mail afsted med den relavante link som f.eks.
www.dinhjemmeside.dk/se_postkort2.asp?kode=dxid93kcc86cntbrat8i
mvh
A 
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 30-12-2002