Tuesday, February 28, 2006

ASP (vbscript) to print html form's contents

<% 'using asp (vbscript) to print form variables %>


<table border="2">
<tbody><tr>
<td><b>Form Variable</b></td>
<td><b>Value</b></td>
</tr>
<% Dim Item For Each Item In Request.Form response.write "form value==_____"&Item&amp;" = "&Request.Form(Item)&amp;" " %>
<tr>
<td><span style=""><% = Item %></span></td>
<td><span style=""><% = Request.Form(Item) %> </span></td>
</tr>
<% Next %>
</tbody></table>

<% ' end of printing the Form variables %>