forms

Nov 03 2007

Drupal Form API

Being a Drupal newbie with some web experience today I`m struggling with creating a form and using the input from that form to display items on the next page.

Unless I`m mistaken (which given my newbie status is perfectly possible) in a _form_submit you parse your data then return a link to the next page you are displaying.

When inserting and updating a page this works perfeclty because you point back to the page that displays the data you edited . But so far the only thing I found out that takes input from a form and displays it in the next page is by using a multipage form.

This article on Lullabot explains how to create such a page .. but I call that far from simple.
Anyone got a better way to do this .. Al I want to do is have a form where I can select some values, then based on those values get some data from my database and display that. There has to be an easier way than multipage forms. But this Drupal newbie can't find it :(

Next step is to get the above example working ..