airshow) When the user logs in, their ID is stored in a session variable. Instead of lookingup the ID in the recordset, use the session variable bidning instead.
also, you have the insert record behavior set to redirect to another page, this redirect happens before the email is sent. remove the redirect from the insert, and have the redirect set in the UE behavior instead.
pd_log) instead of using the Current page submit trigger in the insert behavior, try using the button pressed trigger.
NOTE: instead of pasting the code into text files, please compress the original php files to a zip archive to attach your pages.