Welcome Guest, Not a member yet? Register   Sign In
Get and Post wont work ?
#11

[eluser]DJMOHNL[/eluser]
[quote author="WanWizard" date="1280453248"]Which patch are you talking about? Mine, from the post @pbreit referred you to?

That should work like a charm, providing you have 'enable_query_strings' to FALSE, and 'allow_get_array' to TRUE.

If I test this here with the URL
Code:
http://test.catwoman.exite.local/en/homepage.html?foo=bar&bar=foo

it uses 'en/homepage' to route to the correct controller, and in that controller,
Code:
var_dump($_GET);
// gives me
//    array
//      'foo' => string 'bar' (length=3)
//      'bar' => string 'foo' (length=3)
[/quote]

Yes that one, but i have a controller called home: (with _remap function inside)
that has the same template as my search (zoek in dutch) controller taxidea.nl on the left there is a form wich sends data to (action=)http://taxidea.nl/zoek/index but when i try to get the data (doesnt matter to be get or post) it returns FALSE ($this->input->post('key') and $this->input->get('key')) the var "key" is as an input from my form (see source of website) the get variables dont append in the url when to form method is set to get. Even when i use post method i cant get any information extracted from the "key" input. (<input type="text" id="key" value="" class="side" /&gtWink


at this moment i dont care for my urls to be with query strings or not, i just need to have my form working.. This is very NOT normal as i cant get my information send by the html form. you can see my php settings by http://taxidea.nl/x.php just for today.

thanks for helping.
#12

[eluser]WanWizard[/eluser]
Both the select and the input field in your form are missing a name. So no variables will be posted.

From the HTML spec: "Only form elements with a name attribute will have their values passed when submitting a form."
#13

[eluser]DJMOHNL[/eluser]
i have always used id="anid" and worked, why doesnt it work now ?
#14

[eluser]DJMOHNL[/eluser]
[quote author="WanWizard" date="1280458921"]Both the select and the input field in your form are missing a name. So no variables will be posted.

From the HTML spec: "Only form elements with a name attribute will have their values passed when submitting a form."[/quote]

IT WORKS, THANKS a 1000 ..!

but i remember myself to have a website created this website: http://openbuster.com/verify/email check the source from this site exactly this url and youll see it has no name="property" and still works

how can it be that this form works and my taxidea wont ?
#15

[eluser]DJMOHNL[/eluser]
sorry my bet it uses: jquery to submit this form..Tongue
#16

[eluser]WanWizard[/eluser]
Depending on the browser it might work, but is not according to the standards.

When I submit your form, firebug tells me that it tries to load http://taxidea.nl/zoek/index?provincie=6...reenplaats, so it does create the correct request, with parameters.

The reason why this doesn't work, is that the URL is missing an extension, identifying the request as a file. Now you're requesting a directory with parameters. You can test that by using http://taxidea.nl/zoek/index.html?provin...reenplaats, which responds with "U zocht naar :zomaareenplaats".




Theme © iAndrew 2016 - Forum software by © MyBB