.asp pages not processing

Posted on 2005-05-16
Last Modified: 2013-12-24
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 :)

Question by:boydicus
    LVL 29

    Expert Comment

    Are you using FP forms to process this?  If so, FP forms will not use the email bot.  You will need to use CDOSYS, JMail, ASPMail, ASPEmail etc

    LVL 4

    Expert Comment

    Just to clarify what Corey is trying to say...

    The FrontPage forms results bots used to make the forms pages work will only work on HTML pages. If you try and use them on ASP pages they will not work. Microsoft did this on purpose to close up possible security points.

    To do what you want to do you will need to make your own code and use a different email sender such as CDOSYS, JMail, ASPMail etc.

    Here is a link to MS that shows how to send a form to two email addresses by piggy-backing two forms and you may be able to tweak the idea to fit your needs.;en-us;825454&spid=2514&sid=229

    I've used a similar way to send form data to a database and then to an email address before.

    Good Luck...

    Author Comment

    AZweb, thank you for your detailed response.  I took a look at the MS article you refer to.  This is good to know about, but it isn't what I am trying to do.  The server processes both forms in series, so this won't work for me.  What I need is to have the second form be presented to the user as well.

    Perhaps I should back up a bit.  What I want to do is to collect several text fields and have those sent to an email address.  I also want to provide for a file to be uploaded.  I was planning to do this with one form to collect the data, then a second to process the upload, although if there is a way to do this on a sinlge form that would be fine.

    And now that I think about it, if there were a way to attach the file to the email that is sent, that would actually be most prefered of all.  

    Can you tell me what the best way would be to go about doing this?

    Thank you!
    LVL 29

    Assisted Solution

    You need to use CDOSYS, JMail, ASPMail, ASPEmail and then SAUpload, ASPupload, etc.  It depends on what your server supports.  FP cannot process forms via ASP unless you are dumping the information into database

    LVL 4

    Accepted Solution

    FrontPage has a file upload feature added since the XP version if I remember right but it requires a file folder location to work.
    Go to help in FrontPage and type in file upload and you should see the information on adding it to a form.

    To send the file by email would require a custom form but you are also going to run into major problems with anti-virus programs killing files that may not be bad.

    I use the file upload for an employment agency site I build and support and it works fine. Users can upload their resume this way to a folder. The company them gets user info and the resume file name info by email and can retrieve the file when needed.

    We ensure the server virus protection and security is always current and files are tested before use as a second precaution.

    You can still design your form in two parts if needed but I would use one form if at all possible to make it easier to work with.

    I can't remember if I have built something like you are doing. If I get a chance I can look at some old projects to see if I have an example for you.

    Good Luck...

    Author Comment

    I want to thank you guys both for your help on this.  I can see there is a heck of a lot to learn here.

    I was able to fix this by taking a step back and looking at what I was trying to do.  I was making it a lot harder than it needed to be.  All I needed to do was make a single page form using the upload component, and then add a bunch of text fields into that form.  Now the upload happens and I get my email.  Perfect!

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Now that Expression Web 4.0 ( is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
    When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure ( It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
    The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now