View Full Version : Pass email and username
natenorbie427772
11-04-2011, 11:54 AM
I am creating a simple php form that has two questions that will be emailed to the site admin. On submit I want the form to include the email and username of the registered user in the email without them having to type it out again being they just logged in. They log in using security assist so the info would be stored in a cookie or database. I really don't know how to code php so I am lost without an extension or complete how to.
Thanks
Jason Byrnes
11-04-2011, 11:58 AM
on the login page, double click the security assist authenticate user behavior.
on the third page you can select database columns from your user table to store in session variables. select the email address column and the username column to have them stored in the database .
now in the email message, you can use the bindings panel to add dynamic bindings to the email body for the username and email address using the sessions bindings.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.