Results 1 to 2 of 2

Thread: Is this possible?

  1. #1
    Join Date
    Mar 2006

    Is this possible?

    Can I use one form with one submit button to INSERT a record into a table of a database and create a session variable from a hidden field in the same form?

  2. #2
    Join Date
    Dec 2003
    England, UK
    yes. this is pretty standard stuff. just do it like this.

    'set the session variable like this
    session("myvar") = request("myhiddenformfield")
    'insert a record into a db
    set conn = createobject("adodb.connection")
    sql = "insert into (a,b,c) values ('a','b','c')"
    conn.execute sql
    put it all in the one asp page or sub or whatever and it'll work fine.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center