Forums: Capture RecordID from New Registration - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Capture RecordID from New Registration Is it possible to capture the recordid from registration page and emai Rate Topic: -----

#1 User is offline   jmack 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 47
  • Joined: 07-December 07

Posted 20 July 2016 - 05:48 PM

Is it possible to capture in a session variable the recordid after a successful registration? I am trying to include the RecordID, UserName, and SchoolDistrict in the "Successful Registration" email. I am able to get the UserName and SchoolDistrict in my email but I am unable to get the RecordID. Is there a way to do this?

Using Asprunner Pro 7.2.


Thanks for any suggestions.
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15433
  • Joined: 03-February 03

Posted 20 July 2016 - 10:11 PM

You can do that in AfterSuccessfulRegistration event:
http://xlinesoft.com...egistration.htm

You will have to execute SQL query to retrieve that new ID from there database. Here is the sample code:

recordID = DBLookup("select id from LoginTable where username='"  &userdata("username") & "'")

Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked