• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pass the data using redirect

#1
[eluser]alberta[/eluser]
Is there any way to redirect with passing some data ?

Code:
$data['results']='Your search did not return any results.';
$data['value']='some value';
redirect($pieces[1], '$data');

Is this possible or not, if not then what is alternative ??

em stuck at this problem.. any help would be appreciated
thanks

#2
[eluser]Dam1an[/eluser]
Do you definatly need a redirect? Or could you just call another function locally?
If you do need the redirect, then you'd probably need to set the data as flashdata using the session class


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.