943,962 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1396
  • ASP RSS
Nov 23rd, 2007
0

asp, problem simliar with shopping cart

Expand 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yenyen is offline Offline
24 posts
since Aug 2006
Nov 26th, 2007
0

Re: asp, problem simliar with shopping cart

Click to Expand / Collapse  Quote originally posted by yenyen ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
karthikcyano is offline Offline
7 posts
since Aug 2006
Nov 26th, 2007
0

Re: asp, problem simliar with shopping cart

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:
ASP Syntax (Toggle Plain Text)
  1. <input type="text" name="txt1">THIS TEXT</input>

...will produce this in the address bar of the page listed in your <form> tag:
ASP Syntax (Toggle Plain Text)
  1. /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
Reputation Points: 10
Solved Threads: 3
Light Poster
CertGuard is offline Offline
48 posts
since Jul 2007
Nov 26th, 2007
0

Re: asp, problem simliar with shopping cart

hi all..thanx for all the guidance and response...i have solve it..thank you very much.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yenyen is offline Offline
24 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Passing textarea, text values to popup
Next Thread in ASP Forum Timeline: Add Products to Products Table





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC