Setting a destination page for a form post
steveadamo - March 12, 2009 - 19:11
Hi all,
Just a quick question about form posting. If I wanted the front page of my site to effectively be a nicely themed form (users will input one field and submit), can I setup the form such that it posts to another (result) page?
I realize thats entirely possible from an HTML/PHP perspective, so I suppose my question is can I accomplish this with a "form builder", or will I have to create a custom PHP block, or?
Thanks,
steve

I've had no luck in my
I've had no luck in my attempts. Should I look into the form builder module? I'm not even sure what functionality it provides, I just referenced it in my initial post as it sounded like a potential option.
There has to be a way to have a page I've created (from a View) that shows no results by default, offers an exposed form field to search for results, and have the matching result set appear on a new page (as opposed to the page with the form). Yes? No?
My latest theory was to
My latest theory was to incorporate an "ajaxed" form, and have the front page results show up just below the form...
but i would much rather have the form be on the "home" page, and when submitted, have the results display on a child page... any ideas, suggestions?
Have you tried webform? It
Have you tried webform? It can be themed to almost any design and automatically adds data collection / email notification and a thank you page, either standard content or a redirect.
Once created, set the front page to be this page in admin > site information
Alan Davison
www.caignwebs.com.au
Thanks Alan, I'll take a look
Thanks Alan, I'll take a look right now! :)
For the curious, I think this
For the curious, I think this is more in line with what I was looking for. I havent had a chance to test the module yet, but from the description, it seems to address my scenario.
- create a form (my custom front page)
- set the destination for form submission to be a custom view (results of the form submission)
http://drupal.org/project/customdestination
If you have a custom form via
If you have a custom form via the FAPI, just set #redirect = 'xxx'. A quick search of the forums/api will provide the syntax
Alan Davison
www.caignwebs.com.au