• home
  • forum
  • my
  • kt
  • download
  • ASP Forms Tutorial

    Author: 2007-06-24 21:20:34 From:

    Forms are used all over the web to collect data you can see forms on work at this site, amazon and millions of others too. Googles front page uses a text form for users to query it¡¯s massive database.

    First of all you need to learn how to create a HTML form before using an ASP form. Our tutorial should set the record. HTML Forms tutorial

    Creating the script

    First of all lets create the HTML form and call it form.html:


    < form method="get" action="form.asp">
    Name :
    < input type="text" name="name"/>
    Email :
    < input type="text" name="email"/>
    < input type="submit" value="Submit"/>
    < /form>

    The code above will look like this in a browser:

    Name :

    Email :

    Now lets create a seperate script that will collect and display the information we submit.

    The code below will do the job name this file form.asp can put it in the same folder as the form.html page then login to your browser and have a go (remember to publish in your Personal Web Server see ASP Install :


    My details
    < %
    response.write(request.querystring("name"))
    response.write(" " & request.querystring("email"))
    %>

    The browser will now display this as an example:

    My Details

    John Doe

    John@doe.com

    Hope you enjoyed the tutorial feel free to add your comments!

    discuss this topic to forum

    relation tutorial

    No relevant information

    New

    Hot