[development] After form submit

Salvador Benimeli salbefe at gmail.com
Thu Jul 30 17:44:40 UTC 2009


Thank you very much for your responses, I think I will do using FAPI and
building two forms.

2009/7/30 Andrew Berry <andrewberry at sentex.net>

> On 30-Jul-09, at 12:37 PM, Salvador Benimeli wrote:
>
>  I'm not sure If it would be easier with CCK and views or with FAPI or I
>> can't do that with drupal
>>
>
> A few options:
>
> - http://drupal.org/project/webform is great for creating forms which send
> off emails. You'd still have to write something to automatically mark and
> remove unpaid participants.
>
> - http://drupal.org/project/signup and related modules may also do what
> you need, possibly without any coding at all (see the list of modules on the
> page)
>
> - You could probably do the whole ecommerce flow (with online payment) with
> ubercart + cck + views + workflow modules.
>
> - You could write a form yourself as it sounds like you're all ready doing,
> with a second form for admins to mark payment (assuming that's your plan).
> Your goals sound simple enough that if you want to learn module development,
> this would be a good way to go. You'll probably want to read:
>
> http://api.drupal.org/api/file/developer/topics/forms_api.html/6(implementing the validate and submit functions for your forms, to answer
> your original question)
> http://api.drupal.org/api/function/hook_cron (for expiring unpaid entries)
> http://api.drupal.org/api/function/drupal_mail (don't call mail()
> directly)
> http://api.drupal.org/api/function/check_plain (to ensure your site
> doesn't get hacked via XSS - just as important as db_query() with
> placeholders)
>
> Depending on how much time you have, it's probably worth playing around
> with a few of these options to see what fits best.
>
> HTH,
> --Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090730/ff84e8da/attachment.htm>


More information about the development mailing list