Welcome Guest, Not a member yet? Register   Sign In
I am this close to give up on CI
#4

[eluser]Dready[/eluser]
hello,

you need to catch variables from PHP global variable $_REQUEST :

Code:
function greeting($name = '',$times = ''){
if ( isset($_REQUEST['name']) ) {
  $name = $_REQUEST['name']
}
if ( isset($_REQUEST['times']) ) {
  $times = $_REQUEST['times']
}


for ($i=0;$i<(int)$times;$i++) {
echo 'Hello '.$name.', from subfolder!';
}
}

and then use http://www.my-site.com/index.php?c=delme...in&times=5


Messages In This Thread
I am this close to give up on CI - by El Forum - 10-25-2007, 12:54 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 01:51 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:02 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:23 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:50 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 08:58 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 09:00 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 09:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB