- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have been trying to get a feedback form up and running for a new Flash website, using the FormMail cgi script and actionscript 2.0
Over the past two days I have been through every possible variable and issue I can think of to get it working but still no luck. I have received a variety of error messages throughout this time when I have tried to send the form. The first was "The requested URL was not found." the next was "Premature end of Script headers". I thought I had it all sorted out this morning when I sent the form and the pop up window said "Thankyou, below is what you have sent to..." BUT nothing was ever recieved by the recipient and also the body of the email did not show up under the thankyou message.
Below is a copy of the script I am using and also a copy of the actionscript I have written for the form.
#!/usr/bin/perl -wT
#
# NMS FormMail Version 3.14c1
#
use strict;
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
$address_style
);
# PROGRAM INFORMATION
# -------------------
# FormMail.pl Version 3.14c1
#
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licens
# the Artistic License
# <http://www.perl.com/pub/a
#
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.
# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = '';
@referers = qw(dwadesign.com.au localhost);
@allow_mail_to = qw(xavier@dwadesign.com.au
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: xavier@dwadesign.com.au
Subject: form submission
Thank you for your form submission.
stop();
_global.style.setStyle("fo
// -------------------<send form LoadVars>-----------------
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.recipient = "xavier@dwadesign.com.au";
gatherForm.subject = "Website contact form submission."
gatherForm.realname = contactForm.userName.text;
gatherForm.email = contactForm.userEmail.text
getherForm.body = contactForm.userComments.t
gatherForm.send("http://ww
}
// -------------------</send form LoadVars>-----------------
//--------------------<sub
this.contactForm.submitBtn
this.contactForm.submitBtn
// onRollOver
this.contactForm.submitBtn
contactForm.submitBtn.goto
}
// onRollOut
this.contactForm.submitBtn
contactForm.submitBtn.goto
}
// onRelease
this.contactForm.submitBtn
if (contactForm.userEmail.tex
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}
//--------------------</su
Can you identify my problem? The service provider has been no help and just tells me they don't have anybody on staff who knows Flash!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: najhPosted on 2007-08-14 at 03:12:23ID: 19690579
Comments are available to members only. Sign up or Log in to view these comments.