[eluser]Unknown[/eluser]
Hello all,
I'm new to CodeIgniter and PHP in general. I'm trying to send data back to the controller from a view via an html anchor with the php "?". See below.
<a href="index.php?companyChoice=5">1346 Hudson</a>
Oddly, this works when I'm running it on my local machine(localhost) but when I run from a remote server it fails. I just get a blank page after clicking the link. The URL shows "http://my.site.org/index.php?companyChoice=7". It seems like only "http://my.site.org/index.php" displays a page.
When running this locally I can grab the companyChoice information in the controller using "$this->input->get('companyChoice');" and everything works fine.
If I can't do things this way then is there a better way to do it in CodeIgniter where this information can get passed to the controller when the user clicks on the link?
Thank you!