Getting A Flash Form To Work
what is the best way to make a flash form transmit info to an email address?
FlashKit > Flash Help > Flash Newbies
Posted on: 12-15-2005, 11:42 AM
View Complete Forum Thread with Replies
Sponsored Links:
Trying To Get My FLASH Form To Work
i created a form from a flashkit tutorial found here: http://www.flashkit.com/tutorials/Dy...15/index.shtml
and im having trouble getting the submission to work. i dont receive anything when i fill out the form. could it be a server-side thing? and if so, is there anyone that could help me, im totally new to this thing!
View Replies !
View Related
Can't Get Form In Flash To Work PHP
Hello,
I'm having a very difficult time getting a form in Flash to work. I want to use a php script. I know that my server supports it because I'm able to send myself an email using a php script located on the server.
Basically what I want is just a single input field form for people to enter their email address. It would then be sent to my email address in a message, so I could add it to my records and e-list.
I've found tutorials all over the web about email forms, and I've tried to modify them to get them to work like I want. It seems to me the problem is that the script isn't receiving the variables from flash.
As I mentioned above, the php email is working fine as I've tested it independently.
What could be going wrong that I need to fix? I've followed several tutorials and none have worked for me yet.
Any and all help is immensely appreciated!
-Daniel
------------
Version: Flash MX 2004
View Replies !
View Related
Flash Form Won't Work In IE...?
I have created a small search text box in flash for searching the website (it searches and outputs to HTML, not flash).
I also have the AC_RunActiveContent.js thing installed, so that's not the issue. The flash file itself loads fine. However, whenever I submit a search term in the box, it comes back saying that "your referrer does not match our list of trusted hosts." It works just fine in Firefox. Here is the code that I have in the flash file for the search box:
on (release, keyPress "<Enter>") {
var my_lv:LoadVars = new LoadVars();
my_lv.searchTerm = searchTerm.text;
my_lv.send("search.asp", "_self", "GET");
}
What can I do to fix it?
View Replies !
View Related
Flash Form Won't Work In IE...
I have created a small search text box in flash for searching the website (it searches and outputs to HTML, not flash).
I also have the AC_RunActiveContent.js thing installed, so that's not the issue. The flash file itself loads fine. However, whenever I submit a search term in the box, it comes back saying that "your referrer does not match our list of trusted hosts." It works just fine in Firefox. Here is the code that I have in the flash file for the search box:
on (release, keyPress "<Enter>") {
var my_lv:LoadVars = new LoadVars();
my_lv.searchTerm = searchTerm.text;
my_lv.send("search.asp", "_self", "GET");
}
What can I do to fix it?
View Replies !
View Related
HELP Cant Get My Flash Form & PHP To Work
Hello all...
I can't get my online form to work correctly. I've read severval tutorials, but I just cant seem to pull it off.
Could someone be kind enough to help me out with this problem?
To view the site go to: http://www.kosmodesign.com/af.htm
(under the online form section)
If you can help me out, let me know and I can email you the .fla file.
Many thanks,
KJ
View Replies !
View Related
GET FLASH FORM TO WORK
OK, I am trying to get my flash form to work and I'm working with a template from FLASH MX BIBLE. I'm going to paste both my action script and my cgi script in here & hopefully I can find an answer to why it doesn't work. Basically what happens is it says it was received, but it wasn't. ... or it is but none of the words come through (this happened earlier before I tried tweeking the script... which I think made it worse).
........ thank you thank you to anyone who can help me ...........
Attach Code
HERE is the ACTION Script for Flash:
userComments = new LoadVars();
userComments.onLoad = function(success) {
if (success) {
_root.gotoAndStop("output");
} else {
_root.gotoAndStop("error");
}
};
function sendComments() {
var obj = userComments;
obj.fromEmail = fromEmail.text;
obj.fromName = fromName.text;
obj.toEmail = "chicfurniture@sbcglobal.net<mailto:chicfurniture@sbcglobal.net>";
obj.toName = "Shawna Cogar";
obj.subject = "C2C Feedback";
obj.body = comments.text;
userComments.sendAndLoad("http://chictochicfurniture.com/cgi-bin/sendmail.cgi", userComments, "GET");
_root.gotoAndStop("wait");
}
AND here is the CGI script that I copied directly from the CD
#!/usr/bin/perl
use CGI;
# ----------------------------- define variables -----------------------------
# @restrictTo is an array containing refering addresses to which you
# wish to grant access to your script. If it contains a single value of
# 'all' then any refering address can access your script.
# uncomment the next line to grant access to only restricted addresses
#@restrictTo = ('chictochicfurniture.net');
# comment the next line if you restrict access.
@restrictTo = ('all');
# $toEmail is the default email you wish this script to send all
# emails to. uncomment the line below to do this.
# $toEmail = 'chicfurniture@sbcglobal.net<mailto:chicfurniture@sbcglobal.net>';
# $sendMailProg is the location of the mail send program on your server.
# the default setting will work for most Unix servers.
$sendMailProg = '/usr/lib/sendmail';
# ------------------------ end define variables ----------------------------------
# -------------------------- call subroutines ------------------------------------
# step 1: validate the refering address
&validateReferer;
#step 2: get data from form post
&getData;
#step 3: check the output request type
&checkOutputRequest;
#step 4: check required fields
&checkRequired;
#step 5: send email
&sendEmail;
# ----------------------- end call subroutines -----------------------------------
# --------------------------- subroutines ----------------------------------------
sub validateReferer
{
local $isValid = 0;
# checks to make sure that the HTTP_REFERER has been passed
if ($ENV{'HTTP_REFERER'})
{
# compares each address in the @restrictTo array to the refering address
# if it finds a match, it flags $isValid to true and breaks out of the
# foreach loop
foreach $address (@restrictTo)
{
if ($ENV{'HTTP_REFERER'} =~ m|https?://([^/]*)$address|i || $address eq 'all')
{
$isValid = 1;
last;
}
}
}
# if HTTP_REFERER has not been passed, it checks to see if the value of the first
# element of the restrictTo array is 'all', in which case all refering addresses
# are granted access, so the $isValid is flagged true.
elsif ($restrictTo[0] eq 'all')
{
$isValid = 1;
}
# if the refering address is not a valid on, output an error message.
if ($isValid != 1)
{
&output('invalidAddress');
}
}
sub getData
{
if ($ENV{'REQUEST_METHOD'} eq 'GET')
{
# split the query_string into an array that holds the name/value pairs.
@variables = split(/&/, $ENV{'QUERY_STRING'});
}
elsif ($ENV{'REQUEST_METHOD'} eq 'POST')
{
read(STDIN, $fromPost, $ENV{'CONTENT_LENGTH'});
# split the previously assigned value of $fromPost into an array that
# holds the name/value pairs.
@variables = split(/&/, $fromPost);
}
# if no request method has been passed (no form information) then output
# an error message.
else
{
&error('noRequestMethod');
}
# break each name/value pair apart, convert them from the URLenceded format,
# and place them into an associative array.
$k = 0;
foreach $variable (@variables)
{
local($varName, $varValue) = split(/=/, $variable);
$varName =~ tr/+/ /;
$varName =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$varValue =~ tr/+/ /;
$varValue =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$varValue =~ s/<!--(.|
)*-->//g;
$FIELDS{$varName} = $varValue;
$order[$k] = $varName;
$k = $k + 1;
}
}
sub checkOutputRequest
{
$outputEnvVars = 0;
if (defined($FIELDS{'envVars'}))
{
if ($FIELDS{'envVars'} eq 'yes')
{
$outputEnvVars = 1;
}
if ($FIELDS{'envVars'} eq 'only')
{
&output('envVars');
}
}
}
sub checkRequired
{
# checks to see if a formfield called 'required' has been passed
# if not, define @required to be empty. otherwise, define @required
# to be the elements from the comma-delimited list passed from the form.
if (!defined($FIELDS{'required'}))
{
@required = ();
}
else
{
@required = split(/,/,$FIELDS{'required'});
}
# in order to send an email it is necessary to have an address to
# which to send. if no value was passed and a default has not been
# specified within the script, then add to the array of missing
# values.
if (!defined($FIELDS{'to'}))
{
if (!defined($toEmail))
{
push(@missing, 'to');
}
}
# if an email address has been passed frmo the form, then make sure that it
# is a valid format for an email address. otherwise, output an error message.
elsif ($FIELDS{'to'} =~ /(@.*@)|(..)|(@.)|(.@)|(^.)/ || $FIELDS{'to'} !~ /^.+@([?)[a-zA-Z0-9-.]+.([a-zA-Z]{2,3}|[0-9]{1,3})(]?)$/)
{
&output('badEmail');
}
# check to make sure each required formfield has been passed.
foreach $require (@required)
{
if (!defined($FIELDS{$require}))
{
push(@missing, $require);
}
}
# if any missing formfields were detected, output the error message.
if (defined(@missing))
{
&output('missingRequired');
}
}
sub sendEmail
{
# begin sending the mail.
open(MAILPROG, "|$sendMailProg -t");
if (defined($FIELDS{'to'}))
{
print MAILPROG "To: $FIELDS{'to'}
";
}
elsif (defined($toEmail))
{
print MAILPROG "To: $toEmail
";
}
else
{
&output('badEmail');
}
if (defined($FIELDS{'from'}))
{
print MAILPROG "From: $FIELDS{'from'}
";
}
else
{
print MAILPROG "From: <unknown>
";
}
if (defined($FIELDS{'subject'}))
{
print MAILPROG "Subject: $FIELDS{'subject'}
";
}
else
{
print MAILPROG "Subject: <none>
";
}
# print each variable name and value to the body of the email.
foreach $index (@order)
#foreach $member (keys %FIELDS)
{
if ($index ne 'to' && $index ne 'from' && $index ne 'subject')
# if ($member ne 'to' && $member ne 'from' && $member ne 'subject')
{
print MAILPROG "$index:
$FIELDS{$index}
";
# print MAILPROG "$member:
$FIELDS{$member}
";
}
}
# sends email.
print MAILPROG ".";
close (MAILPROG);
# output the success of the send to the user.
&output('sentEmail');
}
sub output
{
# create a local variable to hold the value of the paramaters
# passed to the subroutine.
local ($outputType) = @_;
if ($outputType eq 'invalidAddress')
{
print "Content-type: text/plain
";
print "success=0&error=invalidAddress";
exit;
}
elsif ($outputType eq 'noRequestMethod')
{
print "Content-type: text/plain
";
print "success=0&error=noRequestMethod";
exit;
}
elsif ($outputType eq 'missingRequired')
{
# create local variable to hold length of array for
# missing formfields.
local $howManyMissing = scalar(@missing);
print "Content-type: text/plain
";
print "success=0&error=missingRequired&missing=";
# print a comma-delimited list of the missing formfields.
for ($i=0; $i< $howManyMissing-1; $i++)
{
print "$missing[$i],";
}
print "$missing[$howManyMissing-1]";
exit;
}
elsif ($outputType eq 'badEmail')
{
print "Content-type: text/plain
";
print "success=0&error=badEmail";
exit;
}
elsif ($outputType eq 'envVars')
{
print "Content-type: text/plain
";
print &envVars;
print "&timeDate=";
print &makeDate;
exit;
}
elsif ($outputType eq 'sentEmail')
{
print "Content-type: text/plain
";
print "success=1&timeDate=";
print &makeDate;
exit;
}
}
sub makeDate {
@days = ('Sunday','Monday','Tuesday','Wednesday',
'Thursday','Friday','Saturday');
@months = ('January','February','March','April','May','June','July',
'August','September','October','November','December');
($sec,$min,$hour,$dayOfMonth,$month,$year,$dayOfWeek) = (localtime(time))[0,1,2,3,4,5,6];
$time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
$year += 1900;
$date = "$days[$dayOfWeek] $dayOfMonth $months[$month] $year $time";
$date = CGI::escape($date);
return $date;
}
sub envVars
{
local $remoteHost = $ENV{'REMOTE_HOST'};
local $httpReferer = $ENV{'HTTP_REFERER'};
local $httpUserAgent = $ENV{'HTTP_USER_AGENT'};
$remoteHost = CGI::escape($remoteHost);
$httpReferer = CGI::escape($httpReferer);
$httpUserAgent = CGI::escape($httpUserAgent);
$envVars = "REMOTE_HOST=$remoteHost&HTTP_REFERER=$httpReferer&HTTP_USER_AGENT=$httpUserAgent";
return $envVars;
}
# ----------------------------- end subroutines ------------------------------------
Edited: 09/29/2007 at 02:29:07 PM by photogirl_78
View Replies !
View Related
Getting Flash Form To Work...
Hi every one I'm in the process of building a flash form I've been following tutorial:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
MY EXAMPLE WORK FILE: http://www.johncliffordtaylor.com/form_help.fla
But I've made a change to the work layout (details below) and now I can't get my:
onClipEvent(data){
_root.nextFrame();
}
ActionScript to work so when you press the send button on the form page the play head doesn’t advance to the thank you frame.
In the tutorial shown all the frames are on the main timeline. Because of existing content layout in the site I’m building this form for I have to build the same form and placed it in a movie clip aptly named "form" so it will occupy only one frame on the main timeline.
Sadly this is where the problems start because even though the PHP email function is working fine, the when you click on the send button the play head doesn’t advance to the thank you frame.
I think the problem lines in the:
_root.nextFrame();
Part should it be a:
this.nextFrame();
So any help would be very cool thx for taking the time to read and help out
John
View Replies !
View Related
Flash Form Work With Php File
Hello,
i am trying to make a flash form working with a php file that sends the input data into my email.
the text boxes are working but i cant make the radio buttons and check boxes to work.
is there some one that can tell me what should i do.
i have attached the files so you understand better what im trying to do.
thanks once again!
View Replies !
View Related
Getting Form Object To Work In Flash
Hi,
I have been asked to embed a button into a flash movie. I have the HTML equivalent form tags with all of the detail.
When I have done this before, I used the getUrl object and created a button from an image, which allowed me to redirect to a link
HOWEVER - this time the form object has hidden stuff to pass - see below for the tag:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx, et cetc etc etc etc etc etc-----END PKCS7-----
">
</form>
Any ideas how to get this to work, please?
Cheers in advance
View Replies !
View Related
Flash Email Form Just Won't Work...
I have this form all set up, I have seen a working version and followed everything down to the t! But for the life of me it will not send, the data disappears but nothing... I have tried everything... Can anyone please look at the attached and see if they can see what I am doing wrong it's killing me!!!!
View Replies !
View Related
My Flash Form Does Not Work In Some Computers
I am pulling my hair out over a problem with a Flash form that I recently put on my work website.
We are getting regular calls from customers saying that the submit button does not work at all. I have tested this form on several different computers using IE, FF, Netscape and Opera. It works fine for me on all of them but many customers who say they are using XP and IE are having trouble.
This is the function that gets called from the submit button:
Code:
function sendInfo(aspName) {
myVars = new LoadVars();
myVars.Your_Name = Your_Name;
myVars.email = email;
myVars.Wedding_Date = myDate.text;
myVars.Location = Location;
myVars.DJ_Company = cboDJ.getSelectedItem().label;
myVars.Brides_Name = Brides_Name;
myVars.Grooms_Name = Grooms_Name;
myVars.Bride_Groom_Dance = Bride_Groom_Dance;
myVars.Grand_March_Time = Grand_March_Time;
myVars.Grand_March_Song = Grand_March_Song;
myVars.Wedding_Party_Dance = Wedding_Party_Dance;
myVars.Switch_Partners = SwitchPartners;
myVars.Bride_Groom_Dance_GM = Bride_Groom_Dance_GM;
myVars.Bride_Father_Dance = Bride_Father_Dance;
myVars.Groom_Mother_Dance = Groom_Mother_Dance;
myVars.Parents_Dance = Parents_Dance;
myVars.Bouquet_Toss_Song = Bouquet_Toss_Song;
myVars.Garter_Toss_Song = Garter_Toss_Song;
myVars.Garter_Removal_Song = Garter_Removal_Song;
myVars.Additional_Information = Additional_Information;
myVars.send("WeddingPlanner"+aspName+".asp", myVars, "GET");
}
Can anyone spot a problem? I'm assuming the problem is going to have something to do with the ASP integration but why would it work on some computers and not others with the same OS and browser?
Any help is much appreciated.
View Replies !
View Related
Php & Flash Form Doesn't Work
I'm using kirupa's php & flash form on a web page and it doesn't work. I think it's because all the sections are in external files, including the contact one. Can somebody help me pleaaase?????
Here is the site:
http://www.bausa.cl/home.html
thanx!
the_light
View Replies !
View Related
How To Make A Flash Form Work
I am having much trouble getting my flash contact form working. It is in a flash template that I purchased and I sure could use some help. I thought that it would be easy but it seems to be beyond me as to how it works. php is what I am looking at to use and when I highlite the button to use various scripts none of them work or I'm doing it wrong. I even tried the tutorial here and nothing. This is no simple form. If anyone could help me onto the path that would be great.
Thanks,
chipster
View Replies !
View Related
Can't Get Flash Email Form To Work
I've been doing the Flash email form tutorial...http://www.kirupa.com/developer/actionscript/flash_php_email.htm
..and I can get it to send and email to me but the page doesn't change after it has sent. I've been at it for ages trying different things but I can't get it to work. I've also just realised that the one on the tutorial doesn't work either!
I think the problem lies here....
onClipEvent(data){
_root.nextFrame();
}
I tryed putting a gotoAndPlay when you click the send button but I think this makes it change before it has a chance to send the vars, plus it'd be nice to know the data had been sent.
Any ideas / help would be much appreciated!
Cheers
Sean
P.S i'm using flash mx 2004
View Replies !
View Related
Help Flash Form Wont Work
Hi US.. i need your help... attached is the link to the form I need help on.. its the .fla file.. my cgibin is located at olidemedia.com/cgi-bin. I tried over and over and for some reason it wont work.. please help .. download fla and see if u can make it work.... maybe u can try using your cgi-bin and if it works i would appreciate a link to download the new working fla form and i will just change the address to mines
thanx here is the link http://olidemedia.com/form.fla
View Replies !
View Related
Flash Email Form Just Won't Work...
I have this form all set up, I have seen a working version and followed everything down to the t! But for the life of me it will not send, the data disappears but nothing... I have tried everything... Can anyone please look at the attached and see if they can see what I am doing wrong it's killing me!!!!
View Replies !
View Related
Flash HTML Email - Asp Form Won't Work
Hello all,
I'm formatting an HTML email that has an embedded Flash movie in it. The flash movie has an asp form that sends email. This function works fine when ran from a browser, but doesn't work when sent in the HTML email (viewed using Outlook Express). Does anyone have any idea why this would be or how to correct it? Thanks in advance.
View Replies !
View Related
How To Make This Mail-form Work In Flash?
Hey everyone...
I'm just working on my latest flash-HP and I'm just about done. My only problem is, that I can't make this mailform work, when I integrate it in Flash:
-------------------------------------html start-----
[form name="formmailler" action="http://www.websup.dk/formmailler.php3" method="post"]
[input type="HIDDEN" name="modtager_email" value="ronze@events.dk"]
[input type="HIDDEN" name="emne" value="E-mail from Homepage"]
[input type="HIDDEN" name="medsend" value="hjemmeside;kommentar"]
[input type="HIDDEN" name="url" value="http://www.minusme.dk/tak.html"]
Name:
[input type="text" name="afsender_navn"]
E-mail:
[input type="text" name="afsender_email"]
Homepage:
[input type="text" name="hjemmeside"]
Feed Back:
[textarea cols="22" rows="5" name="kommentar"][/textarea]
[input type="submit" value="Send"][/form]
-------------------------------------html end-------------------
Some of the stuff is written in danish, because it's a danish formmailer I'm using.
But let me explain: the "modtager_email" is recipient
the "emne" is subject
the "url" is the thank-you-for-posting-page
I've tried the tutorial "simple forms in flash" but it doesn't work. I dont't know what I'm doing wrong. All the "hidden" HTMl I've set as variables in the Flash-document (submit button).
If this doesn't work, do you know any other place where there's a formmailer easy to use?
thank you
PS: I've replaced the < > with [ ]
View Replies !
View Related
Making An Html Form Work In Flash
Hello,
I have an html form setup here: http://www.uprokrecords.com/lpg/recommend.htm
I would like to get this to work inside flash but have no clue since the code is really touchy!
The code for the form is attached.
Please help.
<form method="POST" action="http://www.thecadetleague.com/cgi-bin/mrp/MRP.cgi">
<input type="hidden" name="next" value="http://www.uprokrecords.com/lpg/thankyou.htm">
<input type="hidden" name="sitename" value="The LPG E-Card">
<input type="hidden" name="howmany" value="10">
<input type="hidden" name="siteURL" value="http://www.uprokrecords.com/lpg">
<TABLE>
<TR>
<TD width="531"> <table border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="72" height="37" align="right"><font face=verdana size=1 color=white>Your
Name:</font></td>
<td width="150"><input type="text" name="visitorname" size="25"></td>
</tr>
<tr>
<td height="30" align="right"><font face=verdana size=1 color=white>Your
Email:</font></td>
<td><input type="text" name="visitormail" size="25"></td>
</tr>
<tr>
<td height="12"> </td>
</tr>
<tr>
<td align="right"><font face=verdana size=1 color=white> Name:</font></td>
<td><input type="text" name="friendname_1" size="25"></td>
<td width="75"> </td>
<td width="72" align="right"><font face=verdana size=1 color=white>
Name:</font></td>
<td width="150"><input type="text" name="friendname_2" size="25"></td>
</tr>
<tr>
<td height="49" align="right"><font face=verdana size=1 color=white>
Email:</font></td>
<td><input type="text" name="friendmail_1" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_2" size="25"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="36" align="right"><font face=verdana size=1 color=white>
Name:</font></td>
<td><input type="text" name="friendname_3" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Name:</font></td>
<td><input type="text" name="friendname_4" size="25"></td>
</tr>
<tr>
<td height="30" align="right"><font face=verdana size=1 color=white>
Email:</font></td>
<td> <input type="text" name="friendmail_3" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_4" size="25"></td>
</tr>
<tr>
<td height="8"> </td>
</tr>
<tr>
<td height="42" align="right"><font face=verdana size=1 color=white>Name:</font></td>
<td><input type="text" name="friendname_5" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Name:</font></td>
<td><input type="text" name="friendname_6" size="25"></td>
</tr>
<tr>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_5" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_6" size="25"></td>
</tr>
<tr>
<td height="16"> </td>
</tr>
<tr>
<td height="34" align="right"><font face=verdana size=1 color=white>
Name:</font></td>
<td><input type="text" name="friendname_7" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Name:</font></td>
<td><input type="text" name="friendname_8" size="25"></td>
</tr>
<tr>
<td height="35" align="right"><font face=verdana size=1 color=white>
Email:</font></td>
<td><input type="text" name="friendmail_7" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_8" size="25"></td>
</tr>
<tr>
<td height="8"> </td>
</tr>
<tr>
<td height="43" align="right"><font face=verdana size=1 color=white>
Name:</font></td>
<td><input type="text" name="friendname_9" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Name:</font></td>
<td><input type="text" name="friendname_10" size="25"></td>
</tr>
<tr>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_9" size="25"></td>
<td> </td>
<td align="right"><font face=verdana size=1 color=white> Email:</font></td>
<td><input type="text" name="friendmail_10" size="25"></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="2">
<tr>
<td><font face=verdana size=1 color=white>Message to your friend
(optional):</font><br> <textarea name="message" cols="50" rows="5"></textarea></td>
</tr>
<tr>
<td><input type="checkbox" name="copy" value="yes"> <font face=verdana size=1 color=white>Send
me a copy of what's sent to my friends.</font></td>
</tr>
<tr>
<td align="center"><input type="submit" value="PASS IT ON!"></td>
</tr>
</table></TD>
</TR>
</TABLE>
</form>
View Replies !
View Related
What's The Easiest Way To Make A Flash Form Work?
i have designed a simple flash form with a reset and submit button. i simply want the information sent to my email address as text when the user clicks the submit button. is there a standard actionscript somewhere i can copy and paste onto the submit button? what am i supposed to do?
thanx in advance....
View Replies !
View Related
PHP Contact Form From Flash - Used To Work And Now Doesn't
I have a PHP contact form that used to work but now is giving me nothign but problems.
mail.php
PHP Code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];
$to="sintax321@hotmail.com";
$msg="$name
";
$msg.="$email
";
$msg.="$message
";
echo "<pre>"; print_r($_POST); echo "</pre>";
mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>
Flash send function from contact.swf
ActionScript Code:
on (release) { if (subject eq "" or message eq "" or email eq "" or name eq "") { stop(); } else { lineAdapt(); loadVariablesNum("mail.php", 0, "POST"); sent.gotoAndPlay(2); subject=""; message=""; name=""; email=""; }}
I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?
View Replies !
View Related
PHP Contact Form From Flash - Used To Work And Now Doesn't
I have a PHP contact form that used to work but now is giving me nothign but problems.
mail.php
PHP Code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];
$to="sintax321@hotmail.com";
$msg="$name
";
$msg.="$email
";
$msg.="$message
";
echo "<pre>"; print_r($_POST); echo "</pre>";
mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>
Flash send function from contact.swf
ActionScript Code:
on (release) { if (subject eq "" or message eq "" or email eq "" or name eq "") { stop(); } else { lineAdapt(); loadVariablesNum("mail.php", 0, "POST"); sent.gotoAndPlay(2); subject=""; message=""; name=""; email=""; }}
I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?
View Replies !
View Related
Help With Converting A Submit Form To Work On My Flash Design...
i have two problems i need help with.
1. i am redoing a site with flash, and the old version has an html submit form on it. so, i need to learn how to integrate the code that makes the form, found at this url http://sexynianicole.com/contact.html, and make it operate properly on the form found at this url http://www.escort-designs.com/templa...e-contact.html.
2. i have used dynamic text to have a scrollable text area, such as on this url http://www.escort-designs.com/templa...ss-escort.html but when i try to change some of the text to a different font, all of the text winds up changed. i need to be able to have subtitles on this font. is there any way i can achieve this?
any help would be greatly appreiciated.
thanx
View Replies !
View Related
Simple Email Form Flash & PHP Doesn't Work
Hey, Im trying to create a simple email form and it wont work!
Im using the flash -> PHP system.
The PHP is fine as Ive tested it seperately and it works but through flash nothing happens.
AS code - on a button:
Code:
on(release) {
sender = new LoadVars();
receiver = new LoadVars();
sender.n = "vijizzle";
sender.e = "test";
sender.me = "test";
sender.num = "3535";
sender.sendAndLoad("email.php", receiver, "POST");
}
PHP Code:
PHP Code:
<?php
$msg = "Name: ".trim($_POST['n'])."
".
"Email: ".trim($_POST['e'])."
".
"Number: ".trim($_POST['num'])."
".
"Message: ".trim($_POST['me']);
mail("someone@emailaddress.com","Query" , $msg);
?>
Any help appreciated - thanks.
View Replies !
View Related
Why The Heck Doesn't This Work? (PHP / Flash Mail Form.)
I'm trying to make a really basic contact form using Flash and PHP. I've done this many times before, but this particular one doesn't work at all.
I'm starting to rip my hair out.
Here is my PHP file, which is in the same directory as the .SWF file:
PHP Code:
<?php$sendTo = "ryanragona@gmail.com";$subject = "Ragonadesign.com Contact Form";$headers = "From: " . $_POST["name"];$headers .= "<" . $_POST["email"] . ">
";$headers .= "Reply-To: " . $_POST["email"] . "
";$headers .= "Return-Path: " . $_POST["email"];$message = $_POST["message"];mail($sendTo, $subject, $message, $headers);?>
I've attached my .FLA file. It behaves just fine locally (doesn't send me an email, of course, but it does go to the 'thank you' screen and appear to work) but when I put it on my server it doesn't do a damned thing.
http://ragonadesign.com/contact.html
I'm going nuts. I have no idea what I botched with this one. Any ideas?
Thanks.
See lower post for .FLA file attachment.
View Replies !
View Related
Flash 8 Upload Form (Filereference) Examples Half Work
Hi
I'm trying to put together a simple upload form using Filereference.
But the examples I've found and tried to use don't quite work the way they should.
Example 1:
http://www.flash-db.com/Tutorials/upload/
I downloaded the source files, changed the
Code:
System.security.allowDomain("http://localhost", "127.0.0.1");
piece of it to reflect my domain name (although left the I.P alone)
and uploaded it to my server (created proper upload folder, with 777 permissions etc.. as well).
The script uploads the small files I've selected to the proper folder.
BUT after the swf tries to upload the file, it stops doing anything. The file gets uploaded, but the Swf file doesn't get any feedback, or doing anything. Just says thats its still trying to upload the file.
Example 2:
http://www.kirupa.com/developer/flas...erence_pg1.htm
I downloaded the Fla, published a HTML page and swf file from it, created a php script by copy pasting the code found on page 3 of the tutorial.
Uploaded the files, created proper upload directory, with 777 file permissions.
It does practically the same thing, I select a file with it, the file gets uploaded, but the progress bar doesn't show up, and the form doesn't reset itself. Its like as soon as the swf contacts the Php script, it doesn't do anything anymore.
Example 2 used to work the exact opposite though, a couple days ago when I first tried it, the files would trigger the upload progress bar, but would hang at some percentage (like 60%, 40% etc..) and the file wouldn't upload. Today I redownloaded the files, created a fresh directory on the server etc.. pretty much started from scratch, and now the files show up, but I don't get any feedback from the form.
I don't know what to do...
The other day I tried to add the lines of code mentioned on the 4th page of the example 2 tutorial, to the global .htaccess file, but those lines of code, proceeded to kill all other php scripts running on my website, they just stopped working and produced error messages. So I had to remove the code lines. Its probable worth mentioning that the .htaccess file already had some lines of code in it to handle the redirecting of a particular URL away from the main index page onto a sub folder and its index page (as suggested by my web host)
Heres the links to the examples that fail to work for me:
Example 1:
http://albertaintegrated.com/tests/f...01/upload.html
Example 2:
http://albertaintegrated.com/tests/f...eUploader.html
Heres the php scripts being used for them:
Example 1:
PHP Code:
<?php//create the directory if doesn't exists (should have write permissons)if(!is_dir("./files")) mkdir("./files", 0755); //move the uploaded filemove_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);chmod("./files/".$_FILES['Filedata']['name'], 0777);?>
Example 2:
PHP Code:
<?php if ($_FILES['Filedata']['name']) { move_uploaded_file($_FILES['Filedata']['tmp_name'], 'upload_directory/' . basename($_FILES['Filedata']['name'])); }?>
And the links to the Flas involved are above.
Other then the change I mentioned I did on the Example 1 tutorial Fla, I assure you I left them untouched and identical to the ones you download from the tutorial pages.
I only need a simple Upload script. It doesn't have to upload multiple files at a time. I just need something that works, and is simple enough that I can attach it to a small contact form, that will email the users name and contact information, as well as the name(s) of the file(s) the user uploaded.
I'd appreciate any and ALL help, pointers, and suggestions you or others may offer.
Links to alternative tutorials and examples would also be appreciated.
Although, I need to be able to make the upload form look a certain way to fit in with the rest of the site (as well as make it fit within a certain size space) so I don't think some sort of component, where I couldn't rearrange the elements would work very well.
Thanks for your time
-Lem
View Replies !
View Related
How To Make A Button In Flash Work As A Form Button?
I'm trying to figure out how to use a button in flash as a form button. I have all of this HTML:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="julie1@juliedesigns.com">
<input type="hidden" name="item_name" value="picture">
<input type="hidden" name="item_number" value="picture1">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
</form>
And I want to be able to make button in flash be able to do what that form button would. Anyone know how to do this?
View Replies !
View Related
How Do I Get My Form To Work
I have put together a contact form. I have placed all of the input text fields and in the variable placed name,address, email, etc... I have created the submit button. Now how do I get it to work. What is the scripting I need and where does it need to go? Thanks to anyone who can help! I'm very new to flash5 and feel a bit frustrated and overwhelmed!
View Replies !
View Related
Cant Get Form To Work Please Help
Hi I have been having trouble for ages to get my form to work now, and i just cant do it. So i am asking you pros out there for some help please.
I also wanted to add some extra fields, but am not sure on how to add checkboxes and since i cant get what i have allready made to work, thought i should stay clear of it for a while.
The .pl and the .fla are available at
http://www.visual-designs.co.uk/problems/form.pl
http://www.visual-designs.co.uk/problems/enquiry.fla
When i fill in the form it says it has sent the data but i never recieve it! My webhost supports all scripting and the perl settings are right according to my host.
Aghh,,, please please help me as im dead stuck
many thanks
alexasigno@hotmail.com
View Replies !
View Related
Form Won't Work?HELP HELP HELP
Hi.
Trying to get a form to work using a tutorial we found on flashkit. I have zipped the flash file and the FormMail.pl file we are using on my server.
Wondering if someone can check them over for mistakes, as we dont recieve e-mail after filling in the form.
The path to perl is correct for my server
so is the sendmail path.
What could be wrong?
I would appreciate your help.
Thank you
Rich
web address it is uploaded to: www.platinumjar.co.uk/form.swf
View Replies !
View Related
I Need To Have This Form Work Please Help
hello, i have modified the code at the top of the php file that says: "enter your site details below". please help me. this code for the orginial file doesn't do what it should either.
heres my code
frame 1 action
fscommand("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
confirm = "please wait for confirmation ...";
action = "send";
//
// and focus on variable fname
//
Selection.setFocus("fname");
//
// validate email function
//
function validate(address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".") ) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "ERROR! Address not valid")) {
email = "ERROR! Address not valid";
action = "";
}
if (!validate(email)) {
email = "ERROR! Address not valid";
action = "";
}
if (fname == null) {
fname = "ERROR! Name required";
action = "";
}
if (lname == null) {
lname = "ERROR! Name required";
action = "";
}
if ((validate(email)) && (email != "ERROR!") && (fname != "") && (lname != "")) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}
stop();
View Replies !
View Related
Why Does'nt My Form Work?
Hi All!
I needed to know why does my flash form not work?
I have used one of the tutorials on kirupa, but it seems like I dont recieve any mails after the submission...
Here is the PHP code :
PHP Code:
<?$destination="sam.chikku@gmail.com";$name=$_POST['name1'];$email=$_POST['company'];$mes=$_POST['email'];$mes=$_POST['number'];$mes=$_POST['message1'];$subject="Message from $name" ;$mes="Name : $name
Email: $email
Comments: $mes
";mail($destination,$subject,$mes); ?>
and here is the actionscript on the submit button:
Quote:
on (release) {
if (_root.pgap.pages1.page5.name1 == "Name" ||
_root.pgap.pages1.page5.company == "Company" ||
_root.pgap.pages1.page5.email == "E-mail" ||
_root.pgap.pages1.page5.number == "Phone" ||
_root.pgap.pages1.page5.message1 == "Message" ||
_root.pgap.pages1.page5.name1 == "" ||
_root.pgap.pages1.page5.company == "" ||
_root.pgap.pages1.page5.email == "" ||
_root.pgap.pages1.page5.number == "" ||
_root.pgap.pages1.page5.message1 == "") {
_parent.gotoAndStop(3);
} else {
_parent.loadVariables("email.php", "POST");
_parent.gotoAndStop(2);
}
}
Kindly let me know if there is any problem with this..
Thanks all
Chikku
View Replies !
View Related
Pls Help With My Form. It Wont Work
I hope someone can please help me. I have been trying to figure this problem out for 2 weeks now and getting NOWHERE! My feedback form on my new website will NOT work at all! I mean, it will not email me the results. I dont know what I am doing wrong! My current html website that is up uses the exact same formmail script that I have on my server and my results are sent to me fine, so im thinking it must have something to do with the flash. Here is the scripting that I have attached to my submit button.
on (release) {
subject = "Contact Form";
recipient = "sales@wdu.net";
loadVariablesNum ("http://www.wdu.net/cgi-local/FormMail.pl", 0, "GET");
gotoAndPlay ("Thank you");
}
I know that the url is correct and I know that all the variables in my formmail are correct because the other site is using it just fine. I have also tried to replace the GET with POST and it wont work either. Can anyone give me some feeddback or troubleshooting ideas that I can try? Thanks to anyone who can help! I REALLY need to get this done soon and this is the only thing holding it up.
**Ok, ive tried Netbreed's flashmailer that I heard some people talking about on the S&B forum, but it STILL wont work. I am totally clueless now because I have never had this much problems in HTML.
[Edited by wdu2000 on 06-24-2001 at 06:26 PM]
View Replies !
View Related
My Feedback-form Does'nt Work
AAAAHHHH, most probably I'm just blind, but can you help me please?
I try to make a feedback-form in MX, everything works BUT:
I get the message via email from my perl ('nether-mail' and I've tried 'FormMail', too) WHEN I'M PREVIEWING THE FILE (ctrl + F12)
But when I put the .swf onto my Server and try the form - I don't get the feedback-email !
Can anyone imagine what could be the mistake I made and what I have to do?
THX in advance
auric
View Replies !
View Related
Checkbox To Work With Asp Form
Hi. I have a form in flash that is working... simple name, email, comments and when you hit submit it sends me an email using an asp file. It works fine, but now I want to add a checkbox. The checkbox lOOKS like its working but I don't know how to code the asp file to let me know if the user checked it off or did not check it off. The checkbox is a movie clip. PLEASE HELP. You can see the form at http://www.dangerousmedia.com/dmflash.html on the contact page.
THANKS
Jeanine
View Replies !
View Related
I Can't Get My Submit Form To Work..help Please?
Hi,
I was wondering if someone could help me to get my submit form on my website to work? I am working in Flash 5 and I used this tutorial on flashkit to create my form:
http://www.flashkit.com/tutorials/In...-807/index.php
The two problems that I have:
1) I cannot get the information contained in the submit form to be sent to the email address that is specified in the script. (I have tried both suggestions by Matthew in his tutorial by switching 'mailuser' to 'targetpage' and 'recipient' to 'redirect'. Neither of which seem to solve this situation.
2) I did not get the part in Matthews tutorial about setting up the script so that the 'thanks, your information has been submitted' message would open within the same flash movie. I know that right now it is setup to load into a 'thanks.htm' file. How do I get it so that it does NOT open an external window with a thanks message and the movie just will go to a different frame to tell the user thanks. Is that possible? If it is not possible and I have to have a thanks.html open then I need some help getting that to work. I created a thanks.html page and uploaded it to my server. I put the page in both my cgi folder and my html folder but the page wont come up when directed.
I have attached my .fla file. Can someone please help me with this?
thanks in advance...
View Replies !
View Related
Still Cant Get Formmail.pl Form To Work, Trying Everything
This is the first brick wall ive hit when it comes down to making these websites. i get an internal server error when i try to submit a formmail. i have gone back to a clean slate and uploaded a new formmail.pl document. this is the one i am using. (http://www.scriptarchive.com formmail version 1.92). here is my script in my fla.
stop();
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.email_to = "chris@blackbirdsound.com";
gatherForm.visitor_Message = form.Message.text;
gatherForm.visitor_Email = form.Email.text;
gatherForm.visitor_Name = form.Name.text;
gatherForm.send("/cgi-bin/formmail.pl", "_blank", "POST");
}
this.Submit.onRelease = function() {
if (form.Name.text == "" or form.Email.text == "" or form.Message.text == "") {
_root.gotoAndStop ("fail");
} else {
sendForm();
_root.gotoAndStop("success");
}
}
if anyone can help i will pay $20.00 for a working version. my IP address is 64.207.185.64, domain is blackbirdsound.com, and email is chris@blackbirdsound.com.
thanks chris.
View Replies !
View Related
Sumit Form To Work ?
hello guys, I have a template and it has a contact page all setted up and it has a form in it to fill up etc... how do i get that to work and send emails to my email account ?
thanks.
View Replies !
View Related
I Can't Get Php And Swf Contact Form To Work
Hi all,
I am trying to complete my first HTML site but am having some trouble getting a contact form i downloaded at http://www.macromediahelp.com/flash/..._contact_form/ to work.
My page link is:
http://www.yusufm.com/contact.html
I put both the mailer php and contact form in a subfolder and replaced 'email@yourserver.com' with my email address.
Is there anything I may have overlooked?
Any help would be greatly appreciated
View Replies !
View Related
E-mail Form Won't Work
Hello,
Sorry I've already posted the same question but at MX thread. I'm actually using Flash 8 professional, I'm not sure if it makes difference. Problem is exactly the same as follow:
http://www.actionscript.org/forums/s...666#post601666
I loaded e-mail form swf file into a main swf. E-mail function works but it won't go to the next frame. I understand the mail form swf is no longer _root because it's loaded into a main swf file. I tried this. and also this + instance name with it but the result are the same. I have no idea what is wrong... help!!
View Replies !
View Related
Looking For A Way To Make A Form WORK
I have made a website for my company using Flash and someone has requested that I add a form to our website. Right now the user clicks the link and it opens his/her default email (Simple!), but now they want them to click that button and have the user goto another page where they enter their name, email, phone, company name, have a combo box listing what department the email will be going to, then a comments box. I have tried and tried to get this to work. I created a simple form with my name, phone, and comments box, filled it out and hit the send button. I never recieved the email with the information. My work uses an exchange server for the mail. I have tried an asp and a php behind to go behind this form and I have no luck so far. I think between our exchange server, our email filter, and firewall, somewhere along the line it gets blocked out or something. I did check the email filter and it was not getting caught in that. In conlclusion I didn't know if anybody might know how I can get information from a form sent to me in an email or if I can get the online form to write a file and save it to a location on the webserver. If you could help I would really appreciate it.
View Replies !
View Related
Grr. Cannot Get PHP Contact Form To Work.
Hi!
I cannot get a PHP contact form working. I have tried everything i can think of (which isn't much!) and can't get it to work. This is what i am using. Can anybody see what's wrong with this please? As you can see, the form contains a fromname, fromemail, subject and message fields.
I'm a complete newb when it comes to PHP. Please please please help.
Attach Code
ActionScript on form frame:
function lineAdapt() {
message_send = message;
while (msg_count<length(message)) {
msg_count = msg_count+1;
if ((substring(message_send, msg_count, 2)) eq "
") {
message_send = (substring(message_send, 1, msg_count-2)) + "
" + (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
Action script on button:
on (release) {
if (subject eq "" or message eq "" or fromname eq "" or fromemail eq "") {
stop();
} else {
lineAdapt();
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(415);
}
}
PHP script:
<?php
mail("my@emailaddress.com", $subject, $message, "From: $fromname
Reply-To: $fromemail
X-Mailer: PHP/" . phpversion());
?>
View Replies !
View Related
|