Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine no. of variables posted to script?

Status
Not open for further replies.

staines

IS-IT--Management
Oct 2, 2003
4
GB
Hello,

I want to write a generic sendmail script which will be used by many different forms. The script will need to know how many variables have been posted to it, and be able to determine the names of these variables. How do I do this?

I could do this in PHP, but am learning ASP at the moment (in a very short space of time).

Any help is appreciated.

Thanks
 
To get the count:
<%
response.write(&quot;The count is: &quot; & request.form.count & &quot;<br>&quot;)
%>

To get the collection and values:
<%
for each objItem in request.form()
response.write(objItem & &quot; = &quot; & request.form(objItem) & &quot;<br>&quot;)
Next
%>
 
That's exactly what I wanted to know. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top