I'm using PHPR 4.2 with a MySQL database.
I have a project where a golf course registers to give discounts and specials to golfers. After a successful registration, I want it to automatically log them in and then redirect to a page where they are required to add at least 1 discount.
I have everything working OK with registration and adding discounts after they log in, but the client wants them to have to add a discount during the registration.
I basically need to know how to automatically log them in after successful registration, then redirect to the coursediscounts_add.php page, and require them to add a discount. I'm guessing most of this would be an After Success Registration event, but I have no clue how to accomplish this.
The course information from the registration form is in the courses table which is the parent table to the course discounts table.
The trick here is that the client wants to require at least one discount, but to allow them to offer unlimited additional discounts; otherwise, I would put the discount right in the course table.
All assistance greatly appreciated.
Thanks,
JET