473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

REQUEST: Help With Transferring to New Page After Submitting Form (Viae-mail)

If this is not the correct newsgroup, please direct me to one better
suited to my request.

I have created a simple online survey (using a form) for a club. For
several reasons we prefer to have the survey results transmitted via
e-mail, to be analyzed by a person rather than a CGI script:

<FORM ID="Club Survey" NAME="Club Survey"
ACTION="mailto:em***@host.com" METHOD="POST" ENCTYPE="text/plain">

or the equivalent. Rather than simply leaving the form in the browser
window after the user clicks the submit button:

<INPUT NAME="Submit Button" TYPE="submit" VALUE="Send Survey" >

we would like to have the browser automatically transfer to another page
("Thank you for participating . . .").

That is, in effect we want one button do two things:
1) Submit the results (via e-mail).
2) Transfer to a new page rather than leaving the form visible in the
browser window.

I admit that my knowledge of Javascript is pretty limited--but not
completely zero. A few times I have been able to adapt scripts that are
offered openly for general use on various web sites. But in this case I
can't find any help.

This seems like a natural thing people would want to do. But as far as
I have been able to tell, I must be the first person who has ever
thought of it. There is a choice of (probably) dozens of scripts that
disable the "submit" button after the first click, but nothing at all
that does what I describe above.

I HAVE modified one script into something that works in some browsers
(code provided upon request), but it would be preferable to find
something that works in all of them (at least in both Netscape and
Internet Explorer). I would be grateful for any suggestions or advice,
either to the newsgroup or directly to my e-mail address

Jul 23 '05 #1
2 1313
In article <40***************@earthlink.net>, Matthew Lybanon says...
If this is not the correct newsgroup, please direct me to one better
suited to my request.

I have created a simple online survey (using a form) for a club. For
several reasons we prefer to have the survey results transmitted via
e-mail, to be analyzed by a person rather than a CGI script:

<FORM ID="Club Survey" NAME="Club Survey"
ACTION="mailto:em***@host.com" METHOD="POST" ENCTYPE="text/plain">

That's your problem. "mailto" as a form action doesn't work. Use a
server-side process to send the email. How can JavaScript possibly know
if the message has been sent successfully?

--
Hywel I do not eat quiche
http://kibo.org.uk/
http://kibo.org.uk/mfaq.php
Jul 23 '05 #2
>I have created a simple online survey (using a form) for a club. For
several reasons we prefer to have the survey results transmitted via
e-mail, to be analyzed by a person rather than a CGI script:

<FORM ID="Club Survey" NAME="Club Survey"
ACTION="mailto:em***@host.com" METHOD="POST" ENCTYPE="text/plain">

or the equivalent. Rather than simply leaving the form in the browser
window after the user clicks the submit button:

<INPUT NAME="Submit Button" TYPE="submit" VALUE="Send Survey" >

we would like to have the browser automatically transfer to another page
("Thank you for participating . . .").

That is, in effect we want one button do two things:
1) Submit the results (via e-mail).
2) Transfer to a new page rather than leaving the form visible in the
browser window.
<.form ... onsubmit="window.location.href='url_address'">

Check out this link though before you decide a server-side solution isn't the
way to go.

http://www.network23.com/hub/mailto/default.html
I admit that my knowledge of Javascript is pretty limited--but not
completely zero. A few times I have been able to adapt scripts that are
offered openly for general use on various web sites. But in this case I
can't find any help.

This seems like a natural thing people would want to do. But as far as
I have been able to tell, I must be the first person who has ever
thought of it. There is a choice of (probably) dozens of scripts that
disable the "submit" button after the first click, but nothing at all
that does what I describe above.


Javascript has been around for nine years. There are not that many ideas which
have not been attempted in Javascript, including disabling your computer. :)

Peace, Vm
Yaz

Providing complicated solutions to simple problems since 1997.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Newbie | last post by:
OK, this may be impossible since I'm using 3rd party shopping cart ASP software, but I've been able to finagle a lot of other stuff I thought wouldn't work, so here we go: I'm using a form in...
2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
8
by: Du | last post by:
I'm trying to automate the upload process to yousendit.com, but the file size doesn't add up and yousendit.com keep rejecting my upload (it accepts the upload until the very end) I don't know...
10
by: Atul Bahl | last post by:
I am not able to reference values by using cross page postings when using master page. Currently I am runing on beta 2 of CLR. Any ideas... Thanks Atul
5
by: monomaniac21 | last post by:
Hi all Can anyone tell me how to submit a form to update its contents to a db and then from the page the form is submitted to then submit another form which is the payment processing data for a...
4
by: roxanaislam | last post by:
Submitting Form by pressing the "ENTER" key -------------------------------------------------------------------------------- Hi: I have a search form in my application which has 4 dropdown...
18
by: Axel Dahmen | last post by:
Hi, trying to submit an ASPX form using the key (using IE6) the page is not submitted in my web project. Trying to debug the pages' JavaScript code I noticed that there's some ASP.NET client...
4
dmjpro
by: dmjpro | last post by:
when a page is placed then it can be refresh using JS. but if i request for a page using AJAX then how can i get the fresh copy every time. i did that using caching management.... i mean .......
1
by: James97212 | last post by:
I’m trying to request a different page using VB with ASP. I can do this with Radio Buttons and a Dropdown Box. How do I setup the “RedirectPage” for a stand alone redirect? I'm using it in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.