roby4eldiablo 7 Newbie Poster

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.

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( );
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.