Hi,
I have some database records which are listed out in a table on an asp
page.
The table is within a <formtag.
At the end of each record (and table row), I have created a <select>
dropdown box to appear.
The user selects an item for each record in the list, then hits submit.
The following code is used to create the body of the email:
For Each i in Request.Form
MailBody = MailBody & Request.Form(i) & vbcrlf
Next
What I need in the body is the first database field printed on the form
in each record and the selected item from the dropdown against that
record
i.e.
Product A Yes
Product B No
Product C Yes
I have tried adding a hidden input type to carry the Product Code but
all I get is the following as my email body:
Select Status, Select Status, Select Status, Approved, Select Status,
Select Status, Select Status, Approved, Select Status, Select Status,
Approved, Select Status, Select Status
070512001R, 069435001Q, 069424001Q, 069321001Q, 069305001Q, 069270001Q,
069167001Q, 068744001Q, 068677001Q, 068677001Q, 068466001Q, 066497001Q,
061097001Q
Submit
Where 'Select Status' is the default text to show in the dropdown.
It first goes through all the dropdown results, and them through all
the product codes and for some reason, the vbcrlf is not working ? How
can I print them together in sets ?
I need the body to show
070512001R = Approved
069435001Q = Approved
etc
PLEASE CAN YOU HELP ME DO THIS, THANKS
Thanks
David
I have some database records which are listed out in a table on an asp
page.
The table is within a <formtag.
At the end of each record (and table row), I have created a <select>
dropdown box to appear.
The user selects an item for each record in the list, then hits submit.
The following code is used to create the body of the email:
For Each i in Request.Form
MailBody = MailBody & Request.Form(i) & vbcrlf
Next
What I need in the body is the first database field printed on the form
in each record and the selected item from the dropdown against that
record
i.e.
Product A Yes
Product B No
Product C Yes
I have tried adding a hidden input type to carry the Product Code but
all I get is the following as my email body:
Select Status, Select Status, Select Status, Approved, Select Status,
Select Status, Select Status, Approved, Select Status, Select Status,
Approved, Select Status, Select Status
070512001R, 069435001Q, 069424001Q, 069321001Q, 069305001Q, 069270001Q,
069167001Q, 068744001Q, 068677001Q, 068677001Q, 068466001Q, 066497001Q,
061097001Q
Submit
Where 'Select Status' is the default text to show in the dropdown.
It first goes through all the dropdown results, and them through all
the product codes and for some reason, the vbcrlf is not working ? How
can I print them together in sets ?
I need the body to show
070512001R = Approved
069435001Q = Approved
etc
PLEASE CAN YOU HELP ME DO THIS, THANKS
Thanks
David
Comment