We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Passing variables in the query string with EE2

Development and Programming

stomlinson's avatar
stomlinson
2 posts
15 years ago
stomlinson's avatar stomlinson

Hi,

I’m having a pretty of trouble with a query string Expression Engine 2. I have a newsletter sign up form with a field for email address dotted around a website. When you enter your address into this field and submit the form it passes it to the register form, which then uses the EE php class to retrieve it and prefill field on the register page.

This worked fine in EE 1 but since upgrading I can’t get any page to load with a query string attached.

/register will load just fine, but /register?email=something or any other get variables will just load the homepage.

Is this some sort of security feature I can disable?

Thanks a lot, Stephen

       
stomlinson's avatar
stomlinson
2 posts
15 years ago
stomlinson's avatar stomlinson

I figured out that I could do this with a POST method on the form instead, but would still be curious do know if GET requests and query strings are possible.

Thanks, Stephen

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
15 years ago
Pascal Kriete's avatar Pascal Kriete

Yep, you just need to change the uri_protocol in your config file.

It lists a few options, but if it worked in 1.6 then PATH_INFO is the most likely candidate.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.