I have a simple form, presenting an "Order this" button. That form is placed on a node. When people press that button, I want to start an ordering-workflow.
Currently the Drupal-way seems to be:
- Add form to node on
- User clicks form-submit, POST goes to
hook_form_submit()gets fired, receives POSTed values trough form API.
- In that function, the POSTed-data is stored in a Session; then a drupal_goto() sends redirect-header to
/shop/checkout, user GETs
- Code building the
/shop/checkoutpage must retrieve information from Session to build the checkout-workflow.
How can I simply send the POST to
/shop/checkout and present my HTML there, based on the POST, instead of all the intermediate goto and session-spaggetti?