Welcome Guest, Not a member yet? Register   Sign In
Sending variables via URI string
#15

[eluser]_kailash[/eluser]
Maybe you can pass the hex value of the url with bin2hex() and then in your controller you can decode it using pack()

this is for generating the url
Code:
<?php
$url = site_url('test/play/'.bin2hex('http://your-url'));

and then
Code:
<?php

class Test extends Controller {

    function Test()
    {
        parent::Controller();
    }
    
    function index()
    {

    function play($url)
    {
        echo pack('H*',$url);
    }
}


Messages In This Thread
Sending variables via URI string - by El Forum - 04-16-2010, 10:31 AM
Sending variables via URI string - by El Forum - 04-16-2010, 12:22 PM
Sending variables via URI string - by El Forum - 04-16-2010, 01:03 PM
Sending variables via URI string - by El Forum - 04-16-2010, 02:44 PM
Sending variables via URI string - by El Forum - 04-16-2010, 04:17 PM
Sending variables via URI string - by El Forum - 04-16-2010, 06:06 PM
Sending variables via URI string - by El Forum - 04-16-2010, 06:32 PM
Sending variables via URI string - by El Forum - 04-16-2010, 06:37 PM
Sending variables via URI string - by El Forum - 04-16-2010, 06:57 PM
Sending variables via URI string - by El Forum - 04-16-2010, 07:16 PM
Sending variables via URI string - by El Forum - 04-17-2010, 11:43 AM
Sending variables via URI string - by El Forum - 04-17-2010, 01:32 PM
Sending variables via URI string - by El Forum - 04-17-2010, 07:19 PM
Sending variables via URI string - by El Forum - 04-18-2010, 10:36 AM
Sending variables via URI string - by El Forum - 04-18-2010, 01:39 PM
Sending variables via URI string - by El Forum - 04-18-2010, 05:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB