•
•
•
•
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
![]() |
•
•
Join Date: Mar 2007
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 0
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.
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.
asp Syntax (Toggle Plain Text)
while (!rst.EOF) { Request.Cookies("new")("???") = 0; i=Request.Form("qty")(rst("id")); if (i != 0) {Response.write(rst("name") +" "+ rst("cost") +" "+i+ "Costo merce parziale="+i*rst("cost") +"<br>"); Request.Cookies("new")("???") = i; Response.write(Response.Cookies("new")("???")+" <br>"); tot=i*rst("cost")+tot; if (i>rst("qty")) 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>"); rst.MoveNext( );} else rst.MoveNext( ); }
Last edited by roby4eldiablo : Apr 13th, 2008 at 6:59 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
- Previous Thread: email sending form....help
- Next Thread: SQL server date time formating in ASP page


Linear Mode