<% 'Return ID of the passed email address, if one doesn't exist then 'create the account and return the ID email = request.querystring("e") name = "Please enter your name" ref = request.cookies("ref") if email <> "" then SQL = "SELECT ID FROM Register WHERE email = '" & email & "'" lngID = getfirstfield(SQL) if lngID = "" then lngID = createaccount(name,email,paypal,ref) end if response.write lngID else response.write "" end if %>