I am trying to create a multi-page form.
I made the first page with a number of fields. The form action is set to point to page2.asp. I understand that page2 must have an asp extension for this to work.
I made the page2.asp capture the data from the first page using a line like this for each field on the first page:
<input name="comments" type="hidden" id="contact" size="50" value="<%=Request.Form("comments")%>">
I would like page2.asp to capture some more data in fields as well as process a file upload. The goal is to get data from both forms emailed to an address and to have a file uploaded at the same time.
When I test it out, the first page works: I am delivered to page2.asp as I would expect. However, when I hit submit on page2.asp, the page just flashes and reappears. No processing seems to happen, the file is not uploaded and the email is not sent. If I rename the page to .htm and try it on its own, it does process fine.
Somehow, changing the extension to .asp seems to be causing this. Is there something else I need to do to make this work? I am completely new to .asp files, so please do not assume that I know anything :)