Glen Stobbs
asked on
Writing lines of code from a form output in script within a results page
I have an order form that is populated from a database. When I submit, I read the number of lines from the form and then want to read the form data into code rather than showing on screen (response.write) so I can iterate through the code to build an email form with the order. I have a working model with a set number of fields where I have written umpteen lines in manually. The issue is that if an additional product is added by another admin, that order line won't appear in the results, as it has not been pre-coded in.
This is what I want to write in:
I then need to pull the responses in for the eMail (CDO) in a formatted table:
Any help would be very much appreciated.
This is what I want to write in:
ProduktName<1>=Request.Form("ProduktName<1>")
Quantity<1>=request.form("Quantity<1>")
IF Quantity<1> <> "0" THEN
Produkt<1>Weight=request.form("Produkt<1>Weight")
ELSE
Quantity<1> = ""
END IF
** Items above shown as <1> are incremented based on total output lines in the order form
I then need to pull the responses in for the eMail (CDO) in a formatted table:
HTML = HTML & "<tr><td>&ProduktName<1>&</td><td><b>"&Quantity<1>&" "&Produkt<1>Weight&"</b></td></tr>"
Any help would be very much appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
All working as I wanted now.