Click to See Complete Forum and Search --> : Probably very simple.


cakins
04-02-2003, 03:25 PM
Is there a way that works on both IE and Netscape & both Windows/Mac to email a simple form using the "mailto" that will also send the user to another page for confirmation? The kicker is that I need to do this without using CGI, ASP, etc.

Can this all be done with just Javascript? I tried using the "onsubmit" to send to a new URL, but that only seems to work in IE and possibly only on Windows.

I also tried writing a very simple (I don't know much Javascript) function that would send the user to the new URL, but that seems to fire before actually mailing the form!

Any help would be appreciated. If you need to actually show code, please assume I know less than you think. :-)

Thanks,

Chris

pyro
04-02-2003, 03:29 PM
Originally posted by cakins
Is there a way that works on both IE and Netscape & both Windows/Mac to email a simple form using the "mailto" that will also send the user to another page for confirmation?Not reliably. I believe it can be done in IE6 but not sure about any others...

Why can't you uses CGI or PHP?

Jona
04-02-2003, 03:30 PM
It cannot be done without a server-side language unless you parse the URL and use the GET method in the form. However, that is very insecure and people can just type in some URL and you'd be getting spam like crazy.