[development] After form submit

Andrew Berry andrewberry at sentex.net
Thu Jul 30 17:06:39 UTC 2009


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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2672 bytes
Desc: not available
URL: <http://lists.drupal.org/pipermail/development/attachments/20090730/4d82d1fc/attachment.bin>


More information about the development mailing list