It looks like the default method for passing the result of handling a form submit is GET.
The following statement will redirect to form/result
, where a page callback function will extract $content
(the result form processing the form) from the query string (attached to the URL) using the $_GET
array:
$form_state['redirect'] = array('form/result', array('query' => array('text' => $content)));
This works, but I do not want $content
to be a query string (where it can be edited by the user).
Is there an alternative method (e.g. POST
) for passing the value of $content
to the page callback?