Welcome Guest, Not a member yet? Register   Sign In
$_GET doesn't work
#1

[eluser]penta997[/eluser]
Helo. Does someone know, why I cant get value from $_GET??
This is my form code:
Code:
<div id="wyszukiwarka">
                 &lt;form name="spendfrm" action="&lt;?php echo base_url();?&gt;index.php/ksiegarnia/get_books_by_keyword" method="GET"&gt;
                     &lt;input type="text" name="szukaj" /&gt;
                     &lt;input type="submit" name="wyszukaj" value="wyƛlij" /&gt;

                     &lt;/form&gt;
        </div>

and this is part of controller:
Code:
function  get_books_by_keyword($key='')
       {
                      
                      if(isset($_GET['szukaj']))
                      {
                          echo 'dupa';
                          $key = $_GET['szukaj'];
                      }

When I'm running an application the text field is empty.


Messages In This Thread
$_GET doesn't work - by El Forum - 02-05-2011, 01:24 AM
$_GET doesn't work - by El Forum - 02-05-2011, 02:16 AM
$_GET doesn't work - by El Forum - 02-05-2011, 05:13 AM
$_GET doesn't work - by El Forum - 02-05-2011, 05:39 AM
$_GET doesn't work - by El Forum - 02-05-2011, 06:37 AM
$_GET doesn't work - by El Forum - 02-05-2011, 07:45 AM
$_GET doesn't work - by El Forum - 02-05-2011, 07:49 AM
$_GET doesn't work - by El Forum - 02-05-2011, 07:52 AM
$_GET doesn't work - by El Forum - 02-05-2011, 08:52 AM
$_GET doesn't work - by El Forum - 02-05-2011, 01:14 PM
$_GET doesn't work - by El Forum - 02-06-2011, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB