Guest_imported
New member
- Jan 1, 1970
- 0
Hie i just started to learn ASP and i need some explanation of the code below. For example the 1st line i know its to declare the variables for...It would be great if someone could help and explain the other lines to me. THANX.
<% DIM SQLtxt, MyRS, ITEM
SQLtxt = "Select * from orders where orderid = " & Request.Form("ordernumber"
set MyRS = mydb.Execute (SQLtxt)
if NOT MyRS.EOF then
SQLtxt = "Select * From CustomerOrders WHERE ORDERID="& Request.Form("ordernumber"
SET MyRS = mydb.Execute (SQLtxt)%>
<body><form method="POST" action="doit.asp">
<%FOR ITEM = 0 to MyRS.fields.count - 1
response.write MyRS.fields(ITEM).name & ": "
response.write MyRS.fields(ITEM).Value & ""
next
Session("OrderID"
= MyRS("OrderID"
.Value %>
<input type="submit" value="DeleteOrder" name="deleteorder">
<input type="reset" value="Reset" name="Reset">
</form></body>
<% end if %>
<% DIM SQLtxt, MyRS, ITEM
SQLtxt = "Select * from orders where orderid = " & Request.Form("ordernumber"
set MyRS = mydb.Execute (SQLtxt)
if NOT MyRS.EOF then
SQLtxt = "Select * From CustomerOrders WHERE ORDERID="& Request.Form("ordernumber"
SET MyRS = mydb.Execute (SQLtxt)%>
<body><form method="POST" action="doit.asp">
<%FOR ITEM = 0 to MyRS.fields.count - 1
response.write MyRS.fields(ITEM).name & ": "
response.write MyRS.fields(ITEM).Value & ""
next
Session("OrderID"
<input type="submit" value="DeleteOrder" name="deleteorder">
<input type="reset" value="Reset" name="Reset">
</form></body>
<% end if %>