the $_GET method |
[eluser]t0psub[/eluser]
How can i get variables from the url like the $_GET method? I can't find anything in the user guide on how to pull variables and i get errors if i try to use the $_GET method in the controller. Thanks for any feedback.
[eluser]wakextreme[/eluser]
http://ellislab.com/codeigniter/user-gui...input.html The security filtering function is called automatically when a new controller is invoked. It does the following: * Destroys the global GET array. Since CodeIgniter does not utilize GET strings, there is no reason to allow it. * Destroys all global variables in the event register_globals is turned on. * Filters the POST/COOKIE array keys, permitting only alpha-numeric (and a few other) characters. * Provides XSS (Cross-site Scripting Hacks) filtering. This can be enabled globally, or upon request. * Standardizes newline characters to \n
[eluser]t0psub[/eluser]
Ah i see, I was doing a contact page using javascript to send over the message and then send the email and i couldn't get CI to get teh variables. I keep searching the user guide with "$_GET" and wasn't finding anything. Thanks with that info i can get it working
[eluser]schnoodles[/eluser]
If you are using XMLHTTPRequest, you can always just send them over as POST. Also you can use segment to get info from the url. |
Welcome Guest, Not a member yet? Register Sign In |