I have a form, and the submit line is created on the fly, like this:
- Code: Select all
if isbn="" then
nextPage = "Process.asp"
buttonString = "<INPUT disabled TYPE='submit' NAME='reviewSubmit' VALUE='Submit'>"
PageTitle = "Children's Literature Review Entry"
else
' check to see if they are authorized to edit this review
if (myStatus="Student" and getFieldData("StKatesApproved", 0) = True) OR _
((myStatus<>"Second Editor" and myStatus <> "Staff") and getFieldData("FirstEditComplete", 0) = True) OR _
( myStatus <> "Staff" and getFieldData("SecondEditComplete", 0) = True) then
response.cookies("ChildLit")("message") = "This book has already been edited. You cannot make further changes to this review."
response.redirect "DisplayBook.asp?isbn=" & isbn & "&reviewer=" & user
else
nextPage = "Update.asp"
SELECT CASE getArrayData("ReferPage")
case "ReviewReview", "Process"
buttonString = "<INPUT TYPE='submit' NAME='reviewSubmit' VALUE='Update'>"
PageTitle = "Children's Literature Review Update"
case "ReviewAll", "Update", "DuplicateISBN"
buttonString = "<INPUT TYPE='submit' NAME='reviewSubmit' VALUE='Approve Edits'>"
PageTitle = "Children's Literature Review Edit"
end SELECT
end if
end if
<FORM NAME="ReviewForm" METHOD="post" ACTION="<% response.write nextPage %>" >
It works when I'm in nextpage = Process.
asp
but it doesn't always work when I'm going to update.
asp
When I'm in "case "ReviewReview", "Process"" the form line on the page says:
<form name="ReviewForm" method="post" action="Update.
asp">
but when I submit the form I get /.
asp as the next page. (and obviously I get an error)
When I'm in the other case it's just fine.
I don't get it!
any hints?
Thanks
jakyra