Working With Confirmation Pages (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


ScribeVision -> Working With Confirmation Pages (3/7/2002 23:48:34)

Let's see if I can explain this problem ...

For my National Guard Unit I've created forms for units to fill out reports.

Most reports can simply be accessed using a DRW after the unit is selected from a drop down menu.

However, some reports need to sent out by email as soon as the form is completed.

I have a javascript that adds a button to a page. When clicked, the mail program is opened with the link to the page already included in the body. The idea is that the recipient of the email simply clicks the link and the report for the unit sending the report is displayed.

HOWEVER ...

Since the Javascript only sends the url to the page with the DRW, clicking on the link only gets a "no record found" since the query is not part of the link.

So I tried adding the javascript to the confirmation page for the form, but had the same problem.

I then thought I would add a link from the confirmation page that said "click here to send this report" and have the link pass the unit to a DRW so the url would contain the query for the javascript to pass in the email.

HOWEVER ... I can't seem to pass the parameter from the confirmation page.

There's got to be a better way to do this.

Any suggestions?

 




rdouglass -> RE: Working With Confirmation Pages (3/8/2002 12:35:52)

What about having the server send the email instead of the client sending the email? If you have any kind of mail engine on your server, you could make the button post to an ASP page that sends the recipient a simple email with a link (with parameters). The recipient clicks the link and the server shows the completed form. Is that an option or does email have to be read off-line (or something like that)???

Does that help??

 




ScribeVision -> RE: Working With Confirmation Pages (3/8/2002 13:39:04)

Having the server send the email is an option. Having never done that, perhaps you can point me towards some sample code to set that up.

Being able to use the javascript would be the easiest to implement in the limited amount of time I have to work with.

I was able to make it work by adding the script to the DRW results page where the reports are viewed. The link with the query is included in the email.

However I then discovered that the link is too long so the email only includes part of the url as a true link. If the recipient clicks on the link it will not work. I would have to resolve that by restructuring the web to shorten the path/url to fit the limitations.



 




rdouglass -> RE: Working With Confirmation Pages (3/8/2002 14:11:24)

The method you would use depends on what (if any) email component is installed on the server. Check with your host.........

 




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875