Thanks for that Jason - that bit now works.
What I'm trying to do is pass the LangID parameter from the forgotpassword.php page to the forgotpassword_email.php page, so that the email is in the correct language
When someone submits the form on the forgotpassword.php page, a LangID Session is created, and the _mail.php page has a recordset on it, where the LangID = the session value.
This is where things don't work! No email is sent - I assume it's because the LangID value is lost along the way.If I revert to the non-dynamic version, it works OK.
I've tried it with a $_GET and $_SESSION methods , with the same result (or lack of).
Looking at the code on the forgotpassword page, I notice that the body of the message is
"mailBody" => "webassist/security_assist/email/forgotpassword_email.php",
so perhaps it's trying to include everything, including the recordset info.
Is there a better way of doing this?
Thanks for your help