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 375,221 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 2,227 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: 364 | Replies: 0 | Solved
Reply
Join Date: Mar 2007
Posts: 13
Reputation: roby4eldiablo is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
roby4eldiablo roby4eldiablo is offline Offline
Newbie Poster

Quick question: Cookie key value.

  #1  
Apr 13th, 2008
Hi all, i must create new Cookie key into an existent cookie but i must create them dynamically.
I need that the name of new key are generated from a "for" or simply from a variable.
This is the piece of code interested.
I want to know what i can put at place of ??? to make my key dynamic.

The code is in Classic ASP JScript.
  1. while (!rst.EOF) {
  2. Request.Cookies("new")("???") = 0;
  3. i=Request.Form("qty")(rst("id"));
  4. if (i != 0)
  5. {Response.write(rst("name") +" "+ rst("cost") +" "+i+ "Costo merce parziale="+i*rst("cost") +"<br>");
  6. Request.Cookies("new")("???") = i;
  7. Response.write(Response.Cookies("new")("???")+" <br>");
  8. tot=i*rst("cost")+tot;
  9. if (i>rst("qty"))
  10. Response.write("La quantita di merce selezionata supera le scorte di magazzino, si prega di premere il pulsante Variazione per modificare le vostre scelte.<br>");
  11. rst.MoveNext( );}
  12. else rst.MoveNext( );
  13. }
Last edited by roby4eldiablo : Apr 13th, 2008 at 6:59 am.
AddThis Social Bookmark Button
Reply With Quote  
Reply

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

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

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Other Threads in the ASP Forum

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