Thread: Form Processing

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I am trying to add the results of a form to a table in database. How can i do it?

    Comments on this post

    • JimmyGosling agrees
    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    11
    Rep Power
    0
    Well... those are two different things but certainly doable. First of all you will need to create the form and be able to get the variables and values out of it. So, post the form to a DTML Method and call those variables.

    <dtml-var name_of_variable>

    Now, you will need to get a database and database adapter set up. After that you create a ZSQL Method that has the insert SQL statement in it. From there you just have to call the ZSQL Method from within your method that handles the form request.

    BZ

    Comments on this post

    • JimmyGosling agrees
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    thank you very much!
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    11
    Rep Power
    0
    No problem. Enjoy. BZ

IMN logo majestic logo threadwatch logo seochat tools logo