1

I have a basic login form that's talking to a separate server that's out of my immediate control. I'm trying to read the responses it's sending in the URL within the Craft template. For example...

http://www.adacore.com/login?login=incorrect

I've only ever done it before in PHP. Is it possible with Craft/Twig to access these variables directly? Or should I just read the craft.request.queryString?

And change the template accordingly as needed.

2

I'd go with the built in craft functions.

craft.request.getQuery('login')

craft.request documentation here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.