connecting with DataBase

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaggu
    New Member
    • Jun 2007
    • 4

    connecting with DataBase

    a form with four feilds
    name
    age
    address
    phno
    and a submit button.
    while submiting the form data that has to stored in the database,
    i know to create the form, how should i connect with my database
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by jaggu
    a form with four feilds
    name
    age
    address
    phno
    and a submit button.
    while submiting the form data that has to stored in the database,
    i know to create the form, how should i connect with my database
    I get this type of question often enough that I feel like I should write a tutorial or article. The first thing I would do is write a script that reads the four fields, just to make sure they arrived at the server. If your form says [html]<form action="test.as p" method="post">[/html]
    then test.asp could say:[code=asp]for each x in request.form
    response.write x & ": " & request.form(x) & "<br>" & vbNewLine
    next[/code]this is the first step I take whenever I handle a form. Try this and let me know if it works.

    Jared

    Comment

    Working...