By Renzy on
A beginners question regarding the quickest and easiet ways to implement simple forms in drupal.
I would like to have a form in a block that signs people up to a newsletter. All I want is their email address, either hit subscribe, unsubscribe and then submit, and have the values sent to a table in the database. I am not going to have any people creating user log-ins for this site (other than me as administrator), so this is the only way I am going to collect a list of people to mail to from my site.
Can anyone give me some basics on the best way to go about this? I am working on drupal version 5.x
many thanks,
Renaee.
Comments
4.7 version...
this is a good place to start from: http://api.drupal.org/api/HEAD/file/developer/topics/forms_api.html
There seems to be quite many questions related to Form API. So this quick quide is not enought. Who knows a better newbie tutorial to Form API?
Newbie tutorial for forms API
Yes this is exactly what I need. I have had a read through the quickstart guide, but still not sure how to start. Some simple examples would be good.
This explanation gives me a guide:
But it still does not cover the basics like is it the same page that both displays and procoesses the form, what do you put in for the form action and where are the values/variables stored, ie what table in the database?
An example of a fully coded form on a node or a block would be good?
If anyone knows where this is available from please let me know.
thanks,
choc full of drupally goodness...
movie-reviews.com.au