close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

parameters on forgottenpassword page

Thread began 6/30/2011 7:39 am by info97301 | Last modified 7/07/2011 12:02 am by info97301 | 1622 views | 4 replies |

info97301

parameters on forgottenpassword page

Hi
I'm redesigning a multi-lingual site and need the 'forgotten password' page to follow a language parameter, then go to the reminder email with that parameter (so the user's language is used in the body of the email.

I've passed the parameter 'LangID' to the forgotpassword.php page and tried to alter the code - but the page doesn't load at all.

I have replaced

"failRedirect" => "forgotpassword.php?badURL=1",

with

"failRedirect" => "forgotpassword.php?LangID=$_GET['LangID']&badURL=1",

(and similar examples about 4 times on the page).

ANy suggestions?

Many thanks
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

this is incorrect syntax:
"failRedirect" => "forgotpassword.php?LangID=$_GET['LangID']&badURL=1",



it should be:
"failRedirect" => "forgotpassword.php?LangID=".$_GET['LangID']."&badURL=1",

Sign in to reply to this post

info97301

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
Cheers
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

a better way to do it would be to create a separate static mail password page for each language, then use the Webassist Framework Builder to crate a Dynamic Plugin page to include the correct email page based on the LangID session or querystring

Sign in to reply to this post

info97301

Hmnnnnnn! Not sure I want to spend money on it -it's a fundraising site I run voluntarily.

From the description of the plugin extension, there doesn't seem much use for it - it certainly is not the DDT replacement it advertises, as it doesn't come with a load of extensions as part of it.

Back to the drawing board!

Thanks anyway.
Cheers
Chris

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...