More Script Help

Results 1 to 3 of 3

Thread: More Script Help

  1. #1
    Join Date
    Dec 1969

    Default More Script Help

    Getting an error here saying "expected statement" endif line 45<BR><BR>I have the endif on that line. And I know the web server has the corrected version. Can someone help me out?<BR><BR>&#060;% <BR>For Each field In Request.Form <BR>If trim(Request.Form("field")) &#062; 0 then<BR>Item = Field<BR>Quantity = trim(Request.Form("field"))<BR>set rsItem = connItem.execute("SELECT * FROM ItemData WHERE item=&#039;" & item & "&#039;")<BR>Total = Total + rsItem("Price") * Quantity<BR>else<BR> TheMessage = "Please make at least one selection"<BR>endif<BR>%&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: More Script Help

    dont u think u need a "Next" for a "For" in the very end just after "end if "?

  3. #3
    Join Date
    Dec 1969

    Default "end if", not "endif"

    vineet, he may be used to a curly bracket language that doesn&#039;t require next. dunno, though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts