Current location: Hot Scripts Forums » Programming Languages » ASP » Passing value from one form to another form


Passing value from one form to another form

Reply
  #1 (permalink)  
Old 08-24-03, 11:03 PM
sasi sasi is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Passing value from one form to another form

i have a registration form where the student must enter their personal info(will be inserted in a personal_info table)then the student have 2 proceed and fill up the next form by entering what subjects he would like 2 take....now the problem is i dont know how to retrieve the identity number that has been entered in the previous form(personal info) to be inserted in the subject table...plz help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-24-03, 11:40 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
one way would be to when he logs in (or in this case when he has filled out the form) put a cookie on his comp with his # on it, then you call it from there.
__________________
God save us from the religious fanatics
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 08-30-03, 12:38 AM
Xtremist Xtremist is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Pensacola, FL
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
when you have the information submitted into the DB, have that page with the insert statement redirect to the next page based on a select statement that uses the users name and password. It would get the ID for you and you could pass it on to the next page using a querystring.

So, Page 1 has the form where they enter the info. It submits to page 2.

Page 2 has all the insert statements and then it has a select statement based on the name, password, zip.... whatever... just need some way to identify them... you could even go as far as using a random number.

Then page 2 has a response.redirect using the ID to the rest of your form.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL database registration form help vinhkhuong PHP 3 10-10-03 04:49 AM
passing values from one form to another -urgent aspuser25 ASP 1 09-19-03 07:41 PM
asp: URGENT! need to change code to create new form per id seala ASP 2 09-09-03 10:54 PM
passing array to hidden fields in form on next page? seala ASP 2 09-04-03 03:40 PM
close form sasi ASP 4 08-26-03 04:51 AM


All times are GMT -5. The time now is 01:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.