|
|
 |
Re: FN-FORUM: ASP problem
date posted 10th August 2003 20:22
How about:
For i=1 to request.form.count
If len(request.form.item(i)) 0 then
body = body & request.form.key(i) & ": " & request.form.item(i)
End If
Next
Tam
John anslow wrote:
>
> Hi guys,
>
> I'm having a mare with a form and could do with some help from the ASP
> Guru's out there.
>
> Basically I have a form dynamically generated from a database each
> entry has an order box that the user can fill out with how many copies
> they want to order.
>
> I need to iterate through each entry to check if any items have been
> ordered and then mail them to my client so that they can send off the
> appropriate items.
>
> whereas I would normally use an if form.fieldname "" then
> body=body+form.fieldname but as I don't know how many fields there
> will be I can't do that.
>
> I know that there's a simple elegant programmatic way of doing this
> but I can't remember what it is!
>
> Any help gratefully received.
>
> John
>
>
>
> ==========
> fido.net are pleased to sponsor these Freelancers messages. For all
> your web hosting needs check out http://www.fido.net/ with hosting
> packages starting from just £46.95 a year including VAT.
> Free 0871 Fax2Email numbers also available online!
> http://www.fido.net/ - the internet made simple! - 0800 1072 666
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|