Please help...
Question: Is it possible to redirect a page which contains a form with the action set to the same page.
For example:
SamePage.asp
<%
If Request.Form ("Try"
= "Try" then
Response.Redirect "NewPage.asp"
else%>
<form method="POST" action="SamePage.asp">
<INPUT type="text" id=text1 name=Message>
<INPUT type="submit" value="Try" name=Try>
</form>
<%end if%>
I simplified my prob to the above code. In my real situation, I need to regenerate the page because the data in one of my drop downs depends on the selection of another drop down. However, after the user enters all the info and hits submit...I would like to process the form data in a different page. Is this possible or do I have to process the form in the same page after submit button is clicked?
Please Help....Thanks...
Question: Is it possible to redirect a page which contains a form with the action set to the same page.
For example:
SamePage.asp
<%
If Request.Form ("Try"
Response.Redirect "NewPage.asp"
else%>
<form method="POST" action="SamePage.asp">
<INPUT type="text" id=text1 name=Message>
<INPUT type="submit" value="Try" name=Try>
</form>
<%end if%>
I simplified my prob to the above code. In my real situation, I need to regenerate the page because the data in one of my drop downs depends on the selection of another drop down. However, after the user enters all the info and hits submit...I would like to process the form data in a different page. Is this possible or do I have to process the form in the same page after submit button is clicked?
Please Help....Thanks...