By sdelbosc on
Hi,
I my module, I've created a form that works perfectly when #method value is get - I access parameters with $_GET array.
When I change this value to post, I can't retrieve parameters with $_POST array - it is empty.
I think this is due to the type of item I have set in my hook menu :
$items[] = array(
'path' => 'result_page',
'title' => 'Search results',
'callback' => 'results',
'access' => true,
'type' => MENU_CALLBACK
);
The action parameter value of my form is result_page.
The $_POST array is read in results function.
Any idea?
Thanks,
Sylvain
Comments
can you post ur form code...
can you post ur form code...
Here is approximately my code
Acquia
Cahors, FRANCE
Really sorry
It was simply a huge error!
Somebody else working on the same project had overrided my 'formbuilder' function.
Really sorry and thank you very much Dipesh for your response.
Sylvain
Acquia
Cahors, FRANCE