I dont think trying to dynamically name variables is a good idea, especially if you use Execute() to name each one, what if someone posts a form with a million fields to your ASP page, and you try to Execute() every single one, this might cause a denial of service attack against yourself... surely its better to know what to expect and not allow anything else in.... maybe in just being paranoid?!
Cheers, Sam ----- Original Message ----- From: "Michael Gerholdt" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Thursday, September 26, 2002 7:30 PM Subject: form collection question > I want to programmatically dim variables and get their names from the > request form so that they preserve the names used in the form elements. > > So if I have an html form name="termcode" value="200240" > > pseudo: > for each item in request.form > dim itemName > itemName = request.form(item) > next > > response.write termcode > > will write 200240 > > How can I do this? I seem to remember reading something along these lines a > couple of years ago, perhaps on this list. > > Thanks, > Mike > > > --- > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
