Hi

I'm searching a module for drupal 6.x , or something to create a contact form with the following fields :

  • Name
  • Firstname
  • Address
  • City
  • Phone
  • Gender
  • and Email of course .... :-)

    Later, I want to query these data in drupal DB.

    How can I do this ?

    -with a Module ?
    -A page with PHP Code ?

    (I'm a drupal newbie but I have knowledge in PHP coding)

    Thx for reading

    Comments

    tasigurl’s picture

    I'm looking for the same thing. http://drupal.org/node/297855

    I found some info regarding using views and CCK i linked to it in my post.

    smougel’s picture

    CCK seems to be very powerful !

    I'll try to create a "Contact" content type....

    but I'm wondering how to add an Email validation on the form ?
    Maybe there is a CCK module for an Email Field...

    Thx a lot for your previous answer !

    tasigurl’s picture

    I was wondering about the email validation too.

    Please let post how you do it especially your taxonomy set up.

    smougel’s picture

    I don't understand why they use Taxonomy for a mail form (http://drupal.org/node/86165)
    Maybe they wanted to know in which category the mail form is submitted ... ?

    I've created my CCK content type and now I'll try to create a nice form with CSS...
    I think I have to customize this page : http://mywebsite/node/add/contactentry but i'm not sure...

    alexrayu’s picture

    No need for CCK here! Use webform module! It has one of it's fields an "email" field that has all validation. It's the best for doing web forms in an easy way. Thats why it's one of the SiteHound's default modules.

    - Alexei Rayu.

    Drupal Related Services | SiteHound 2.0 (based on Drupal 6.4) - Drupal for Beginners! Please test and comment.

    smougel’s picture

    Webform seem's to be very useful, and very easy to use...
    The screencast is very explicit... only few minuts to understand the philosophy...

    I'll try to use this... and then give you a feed back...

    Thx

    tasigurl’s picture

    Alexei I have not played with webform yet, however I was reading the documentation and it says:
    "When to use Webform instead of CCK
    Webform is not a front end for let users create custom nodes. For this you can use the CCK or Flexinode modules or create your own custom node module. Webform submissions are not nodes. This means that you can't use Views with submissions, setup custom access permissions to submissions, or do just about anything with them outside of what Webform provides for you."

    I want to create an address book like the one made with PHP here: http://php.about.com/od/finishedphp1/ss/address_book.htm
    Can web form collect and display the info/nodes like this?