I'm writing project in CI and I have winamp plugin that pass values to CI thru URL (e.g. http://localhost/class/method/value1/value2/value3/... ) I have to pass 7 values but last 3 of them sometimes will be empty (e.g. http://localhost/class/method/value1/value2/value3/value4///value7 ) but that way value7 in CI assign as value5, and that's not what I want.
My question : Is there solution without adding extra symbol in winamp plugin like x:value7 and then removing x: and get only value itself.
$_GETarray by doing this:parse_str($_SERVER['QUERY_STRING'], $_GET);. Just be sure to run it through the XSS filter if you plan on putting any of that info back out to the user.http://localhost/controller/method/?field=value&field=valuethen in controller$field = $this->input->get('field');