User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 455,970 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,773 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 856 | Replies: 3
Reply
Join Date: Aug 2006
Posts: 24
Reputation: yenyen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
yenyen yenyen is offline Offline
Newbie Poster

Help asp, problem simliar with shopping cart

  #1  
Nov 23rd, 2007
hallo all..i got some problem in using the session in ASP. i hope u all can guide me in detail.
i have a form, inside got 3 drop down and one text box. and got one Add button. wat i wan to do is:
after fill in the value for this form, then click the add button and it will display the value in the 2nd page. the data hasnt insert into the database yet. then when user click on continue button in the 2nd page, it can add another new record , etc...until the user click on the FINISH button on the 2nd page, then all the records will insert into DB. it is something similar to the shopping cart ...but i duno how is work?

can someone plz teach me how to keep the record from the form as session? how is it work ..plz help....i need some guide on how to start the coding . im quite new in asp..so i got some problem on how to code it..
thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Posts: 7
Reputation: karthikcyano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
karthikcyano karthikcyano is offline Offline
Newbie Poster

Solution Re: asp, problem simliar with shopping cart

  #2  
Nov 26th, 2007
Originally Posted by yenyen View Post
hallo all..i got some problem in using the session in ASP. i hope u all can guide me in detail.
i have a form, inside got 3 drop down and one text box. and got one Add button. wat i wan to do is:
after fill in the value for this form, then click the add button and it will display the value in the 2nd page. the data hasnt insert into the database yet. then when user click on continue button in the 2nd page, it can add another new record , etc...until the user click on the FINISH button on the 2nd page, then all the records will insert into DB. it is something similar to the shopping cart ...but i duno how is work?

can someone plz teach me how to keep the record from the form as session? how is it work ..plz help....i need some guide on how to start the coding . im quite new in asp..so i got some problem on how to code it..
thank you



Hi,
There are 2 ways either u pass the values through querystring or u can use the session variables, Let u can try any of these as im also new to ASP.....

--karthik
Reply With Quote  
Join Date: Jul 2007
Posts: 48
Reputation: CertGuard is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
CertGuard's Avatar
CertGuard CertGuard is offline Offline
Light Poster

Re: asp, problem simliar with shopping cart

  #3  
Nov 26th, 2007
karthik is correct, the easiest way (least secure method) would be to use request.querystring to pass the variables between pages.

Passing querystrings is simple. Each <input> is given a name and the value of the <input> is the value shown in the querystring. That name/value pair is what you see in the querystring.

For instance:
<input type="text" name="txt1">THIS TEXT</input>

...will produce this in the address bar of the page listed in your <form> tag:
/somepage.asp?txt1=THIS+TEXT&submit=Add


You can also use Session cookies, which is a bit more complex. If you'd really like to learn about Sessions, I suggest reading this: http://www.w3schools.com/asp/asp_ref_session.asp
--
Robert Williams
CEO, Founder
CertGuard
Reply With Quote  
Join Date: Aug 2006
Posts: 24
Reputation: yenyen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
yenyen yenyen is offline Offline
Newbie Poster

Re: asp, problem simliar with shopping cart

  #4  
Nov 26th, 2007
hi all..thanx for all the guidance and response...i have solve it..thank you very much.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 9:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC