Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Data

Status
Not open for further replies.

richiemartin

Technical User
Oct 9, 2003
12
GB
Hi
I have created a questionnaire regarding my website and have used the following code to send the information:

myForm = this;
submitButtonListener = new Object();
submitButtonListener.click = function() {
var email = "GISFeedback@hotmail.com";
var subject = escape("Questionnaire Feedback");

// The following code is an example of how the radio buttons are set up
var selectedRadioButton = Quality.selection;
var radioLabel = selectedRadioButton.label;

//The user can also add comments at the end of the questionnaire
var comments = Input.text
Input.text = ""

var body = ("Q1:"+radioLabel+Comments"+comments);
getURL("mailto:"+email+"?subject="+subject+"&body="+body);
};
submitButton.addEventListener("click", submitButtonListener);

The problem occurs when the user selects the submit button. On some computers the user is taken to their default email programme, such as Hotmail. In other cases Outlook automatically loads up. In both cases an email is created and the information from the questionnaire is displayed. The user then has to press send to submit the data. However, on some computers Outlook does not load up and the user is not taken to their default email programme. Therefore not being able to send the information. Preferably, I would like the user just to select the button and the data is sent without them having to go into any email programme…is this possible? I have read a few of the responses from previous inquires of sending data in flash and have seen information on Cold Fusion forms and asp forms but not understanding if I need them for this task?

Thank you for your time and help
Rich


 
If you do not want to be reliant on e-mail programs then you will have to get a server side file to process and e-mail the form results to you. This can be done in any server side language (ASP,JSP,CF,PHP,etc...).

You may find that whoever does your web hosting already has some type of form processor you can tap into. If not and it is supported by your host a popular (free) form handler is available at Matt's Scripts (
Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top