Welcome Guest, Not a member yet? Register   Sign In
Passing a web address to a controller in the URI
#1

[eluser]Unknown[/eluser]
I'm working on a little app where users can submit URLs. I want to make it easy to submit URLs while on other websites, e.g. with a "Digg this" type button, or a bookmarklet like the one for Delicious.

Normally I'd just put the URL as a GET variable (e.g. http://myapp.com/save_link?url=http://myurl.com) but CodeIgniter disables $_GET . I tried putting in the URL as a URI segment, but unencoded forward slashes confuse CodeIgniter as to which argument is which. Encoded forward slashes make it choke with "Object not found!" errors.

Is there a way around this?

I did find
Optionally enable standard query string based URLs
but I don't know what to do with the pre_system hook described there.


Messages In This Thread
Passing a web address to a controller in the URI - by El Forum - 04-04-2009, 04:44 PM
Passing a web address to a controller in the URI - by El Forum - 04-04-2009, 05:24 PM
Passing a web address to a controller in the URI - by El Forum - 04-05-2009, 02:22 AM
Passing a web address to a controller in the URI - by El Forum - 04-05-2009, 08:17 PM
Passing a web address to a controller in the URI - by El Forum - 04-19-2009, 11:13 PM
Passing a web address to a controller in the URI - by El Forum - 04-20-2009, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB