Flash form and php help .....
hi guys i upload all my files to my server but for some
reason the information when i click the submit button never arrives
to my email heres my code am using flash cs4 with actionscript 3 .
thanks in advances .
btw when i click on file and publish flash never creates the
javascript file that it should create why ?
quote:
Originally posted by:
lumija79
hi guys i upload all my files to my server but for some
reason the information when i click the submit button never arrives
to my email heres my code am using flash cs4 with actionscript 3 .
thanks in advances .
btw when i click on file and publish flash never creates the
javascript file that it should create why ?
i think i know my mistake i didnt put ' inside the varibles
['fromemail'];
i cant test this right now but if you see another error
please let me know
Similar Messages
-
Thanks in advance for any help. The hosting company my
customer is using has PHP5 and my old scripts do not work with the
new host. I was however able to get a PHP5 script working. But the
problem is the script is sending 2 emails, 1 Filled out and 1
blank.
Can anyone tell me what's wrong with this script?
Thanks again.
Mike.could you be a little more specific?
-
Flash form and Database integration using PHP
One of the simpleest ways to Flash forms and data components
to interact with a MySQL Database is with the use of PHP scripts.
These scripts can be the intermediary between the Flash form and
the MySQL Database. There are some
FREE Tutorials available at
http://www.interactivewebconcepts.com
I hope this helps.
MauriceI think i found your problem.
It's a Syntax Error here you should use . instead of ,...
[code]
Subject",$CompanyName
[/code]
this should work.
[code]
Subject".$CompanyName
[/code] -
hi all - i have an AS2 contact form using php to send the info to my email address - it all works fine except this ..... rather than having an empty comments box in the flash movie i had added a whole bunch of feedback questions that the user can comment yes/no to in the comments box (my feedback questions were added into the input text box in cs3 so are there when the user opens the contact page .. i have set the maximum characters to 10000 so no worries that its that that is stopping it all coming through in the email ..... basically when i go to my form online and send it i get it through as an email but with only three quarters of the feedback text in it ...... i have tried a zillion ways a round this, tried other contact forms and php and always end up with the same problem ... any ideas any one ?
this is the AS....
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
mail("$adminaddress","Info Request",
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
?>
any help much appreciatedi think you should not use $HTTP_USER_AGENT.
and use loadvars instead of loadvariablesnum:
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
var sendLV:LoadVars=new LoadVars();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
sendLV.name=fname;
sendLV.telno=telno;
sendLV.company=company; //assuming company is a variable in your flash
sendLV.comments=comments;
sendLV.send("mail.php3", "POST");
gotoAndStop(2);
//..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
$from=?;//you need to define this variable
$name=$_POST['name'];
$telno=$_POST['telno'];
$company=$_POST['company'];
$comments=$_POST['comments'];
$body=
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments";
mail($adminaddress,"Info Request",$body);
?> -
OK, I need help. I've just started using flash forms, and I
love them. But, I have a problem. In this example I have cfinput
boxes a, b, and c. After the user adds data to a and b, I use
javascript to subtract b from a and insert the value into c, using
onchange="subtractme();" in the b tag. Problem is, the form never
loads. What am I doing wrong?
<script language="javascript">
function subtractMe1() {
document.cool.c.value=Math.round(document.cool.a.value -
document.cool.b.value);
</script>
<cfform name="cool" format="flash">
<cfinput type="text" name="a" width="60" >
<cfinput type="text" name="b" width="60"
onChange="subtractMe1();">
<cfinput type="text" name="c" width="60">
</cfform>On Linux or Unix, you may need to create a symlink to cfide
directory as CFIDE (case sensitive) in your web directory. Have
your host issue the following command.
ln -s /path/to/web/dir/cfide CFIDE
Additionally, Firefox 1.5 loads Rich Flash forms fine on my
OSX running Panther 10.3.9.
Rock.
-S -
Flash cs3 and php problem (system error)
Hi All,
Been checking out a free utility, called Tell A Friend - followed the instructions to a t but still getting system error.
Here is the php code:
<?php
$to = ($_POST['friend']);
$link = ($_POST['link']);
$subject = "Tell a friend";
$message = "Your friend ";
$message .= $_POST['name'] . " wants advice you the following link: ".$link;
$headers = "My WebSite Name";
if(@mail($to, $subject, $message, $headers))
echo "answer=ok";
else
echo "answer=error";
?>
The main swf has a main.as attached:
* Flash Tell A Friend
* http://www.FlepStudio.org
* Author: Filippo Lughi
* version 1.0
package
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.external.*;
import flash.net.*;
public class main extends MovieClip
private const PHP_URL:String="sendMail.php";
private var checker:CheckEmail;
private var timer:Timer;
public function main()
addEventListener(Event.ADDED_TO_STAGE,init);
private function init(evt:Event):void
removeEventListener(Event.ADDED_TO_STAGE,init);
stage.frameRate=31;
checker= new CheckEmail();
addInputListener();
addSendListener();
private function addInputListener():void
clip_mc.name_txt.background=true;
clip_mc.name_txt.backgroundColor=0x999999;
clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
clip_mc.email_txt.background=true;
clip_mc.email_txt.backgroundColor=0x999999;
clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
private function onFocusIn(evt:Event):void
evt.target.background=true;
evt.target.backgroundColor=0xFFFFFF;
private function onFocusOut(evt:Event):void
evt.target.backgroundColor=0x999999;
private function addSendListener():void
clip_mc.send_mc.mouseChildren=false;
clip_mc.send_mc.buttonMode=true;
clip_mc.send_mc.addEventListener(MouseEvent.MOUSE_DOWN,onSendDown);
private function onSendDown(evt:MouseEvent):void
if(clip_mc.name_txt.text!="")
if(checker.initCheck(clip_mc.email_txt.text))
sendEmail();
else
displayPhrase("Invalid Email");
else
displayPhrase("Invalid name");
private function sendEmail():void
clip_mc.send_mc.mouseEnabled=false;
var variables:URLVariables=new URLVariables();
variables.name=clip_mc.name_txt.text;
variables.friend=clip_mc.email_txt.text;
variables.link=ExternalInterface.call('window.location.href.toString');
var request:URLRequest=new URLRequest();
request.url=PHP_URL;
request.method=URLRequestMethod.POST;
request.data=variables;
var loader:URLLoader=new URLLoader();
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE,onMessageSent);
try
loader.load(request);
catch (error:Error)
trace('Unable to load the document.');
private function onMessageSent(evt:Event):void
var vars:URLVariables=new URLVariables(evt.target.data);
if(vars.answer=='ok')
displayPhrase("Message Sent!");
else
displayPhrase("System Error!");
clip_mc.send_mc.mouseEnabled=true;
clip_mc.name_txt.text="";
clip_mc.email_txt.text="";
private function displayPhrase(s:String):void
clip_mc.display_txt.text=s;
resetPhrase();
private function resetPhrase():void
timer=new Timer(1500,1);
timer.addEventListener(TimerEvent.TIMER,hidePhrase);
timer.start();
private function hidePhrase(evt:TimerEvent):void
clip_mc.display_txt.text="";
Any help appreciated. This is a great viral marketing tool, when it ever works
Kind Regards,
Boxing BoomNever seen such an error, but if it's in the status bar of the browser then it shouldn't be Flash problem. You can check what's happening in your swf by creating a dynamic text field and setting it's text in every major action, that is: requesting PHP and getting back response, to what's just happened.
So, on the Flash side you can see whether the browser error stops the PHP script and immobilizes further actions.
What I'd do is create a new Flash file and PHP file and just send 1 variable to PHP, change it somehow and send it back to Flash and print it in a text field. That way you can check whether it's the method you're using to request PHP or just PHP or something else. Step by step adding complexity and checking on which of these steps the error occurs.
I wish you good luck.
Ps. It's probably a very rookie problem, we just don't know the source. -
I'm creating a Flash Form and I have a group of 4 checkboxes,
and the value part of the input statement is as follows:
<cfif
Isdefined('Form.whatever1')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever2')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever3')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever4')>1<cfelse>1</cfif>
But when I submit the record, all of the checkboxes are
recorded as "1", even if none of them or some of them are checked.
Has anyone developed a flash form with checkboxes and experienced
similar issues?
Thanks...Oh, forgot to mention that I used the same code in a
"regular" form, and it worked. Just curious as to if this is a
known Flash Form problem -
Windows 8.1 not recognizing Adobe Flash Player and Adobe help not helpful
I have a new laptop with Windows 8.1 64 bit. I tried to view a video and it said I did not have flash player. I went to download adobe flash player and your website said I had it intergrated into 8.1 and that it was either disabled, not the right version or that active X filters needed to be clear. I followed all instructions. Flash was installed with the 8.1 64 bit version. Flash was enabled for all websites and I cleared the active X filter and I still get told that I don't have install flash because it is intergrated and but it does not work. Please help I am in a cycle where Adobe is not helping just sending me in a circle. Thank you
Your problems aren't with Adobe or Flash Player. They're with Internet explorer 11 and Microsoft.
IE11 (Windows 7, 8 & 8.1) has been an abomination since its release October 18, 2013. Yahoo, Facebook, BBC, ESPN and dozens of other sites and domains have had trouble recognizing the Browser. If the site doesn't recognize the browser, it won't recognize any plugins in the browser, including Flash Player. Microsoft was made aware of the problems by millions of users within hours of the release, and so far they've shown no sign that they intend to fix it anytime soon. Their recommendation is to enable Compatibility View for affected pages. Two problems with that are that it's had only limited success, and you must enable it manually for each affected page. Basically, they're telling you to "pretend" you're not using IE11.
I'm not big on "pretending", and I recommend actually using something different. Something that works where IE11 won't.
Firefox (from Mozilla)
Chrome (from Google)
Safari (from Apple)
Opera (from Opera)
ANY of those will work where IE isn't recognized, and they use the Flash Player Plug-in (for other browsers), except for Chrome, which has its own plugin embedded in by Google. -
Hello!
I've build a PDF Form and, after extending it with Reader Extension, tested it sending form data to a PHP file, where info is being retrieved via $_POST.
The idea is to save the info in a database.
It worked, but it also opens the php file in the browser; I don't want this to happen, all I want is to save the data and that's it.
I used an http submit button from the objects panel.
What do I do to solve it? Should I use Javascript to make it work the way I want?
Thank you for any hints.
MarcosCan you write a PHP Web Service and consume the data? Thereby you can suppress opening the PHP file in a browser.
Nith -
Data Communication between flash 8 and php (facebook)
I do have knowledge on php and flash 8. But it is my first
time in trying to analyse the facebook architecture and have to
admit I am a bit confused. Ok I have figured out the communication
part between php and facebook but I failed to understand the
communication when flash 8 comes into the picture.
1) Client logins in to facebook (Client PC -> Facebook
Server)
2) Client click on my game application and waits (Client
Request->Facebook Server->My Server)
3) My php script checks for client audentication using
facebook params and load flash 8 application to client PC via
facebook iframe OR FBML (My Server (.php) -> My Server (.swf)
-> Facebook (Iframe or FBML) ->Client PC)
4) Client starts to play.
----------> Ok step 1 to 4, I know how to do it. But it is
this following that I am confused.
5) Client make some changes in the flash 8 application (For
example: He is preparing for an invasion and have included total
soldiers needed and generals needed and click 'invade') and click
the button to save the datas to my server. The problem here is how
to do this while ensuring $fb_params is consistent?
(a) Can I just use sendandload via POST and my php side will
received the POST data as usual($_POST['soldiersneeded'])? Or do I
miss out anything?
(b) Can I use amfphp as usual so as to prevent the
application from refreshing itself everytime it loads in the new
data?
Hope there is a facebook expert who could explain to me in
regards to this problem. Please do take note that I am using flash
8 and not CS3 or CS4. Thanks in advance and have a nice day
everyone! ^_^Have you read this manual?
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl) -
I would like to put a form up that the people in my office can open place a bid on an item (along with phone number , email which item number and how many if applicable) and then track the information so I can see who the highest bidder is. Of course this would be internal to an office with servers. I am just stuck hopelessly on this. Never used this program before thought I was smart as I used the office package. Thank you in advance for any and all help.
hi
As per indian C form business process J1IUN will not meet the requirements.
we have to develop Z programme for this, logic is
1. Transaction one is all CST 4 % or 3 % invoices we have to store in Z table. (daily by creating Z tcode)
2. second transaction is maintain the C from numbers for respective invoice numbers ( by crating Z code)
3.develop 2 reports, one is invoices with C from numbers another one is invoices with out c form numbers.
so by sitting with u r abaper u can give above solution -
Has anyone seen a workable fix with regard to the Eolas
problem. For those unfamiliar, I'm referring to the box around all
Flash content requiring the user to click before they can interact
with the form.
I'm particularly interested in the fix for Flash Forms in
ColdFusion. I have MX7 installed. I have a JS script for
movies...but to date, nothing works for Flash Forms.Have you tried CFMX 702 updater? That has a fix for EOLAS
issue.
More details at:
http://www.asfusion.com/blog/entry/eolas-fix-for-coldfusion-flash-forms -
Flash, iWeb, and More, HELP!!!!
Can anyone help me? I want a website with a homepage that is moving all the time with a film going on in the background. It has music playing too!
2. On the site, i will want "selector buttons" at the bottom of the page. Once a button is selected, the "Home Page film" will "transform" or mutate into another film. look here for example: http://www.starmotorcycles.com/star/msite/micro_v1.aspx
The "red dots" on the motorcycle. If you hold your mouse over a red dot, a movie plays!
3. On "Page 2," of my site there would be pictures of movies, etc. Select a picture and a movie would start up right away with music. Look here: http://www.starmotorcycles.com/star/msite/micro_v1.aspx.
4. also, what software is best for doing this?
5. I would lace together hundreds of small movies which would play as part of the button selection process, explained earlier.
6. I have purchased dreamweaver, extension manager, fireworks mx and freehand 10 as a package to make websites.
7. So, would it be best to set the site in html and have several flash subsections or make the entire site flash? is it hard to easy to do?
8. I am thinking about using the same type of cgi animation used in the film sky captain and the world of tomorrow. and some style elements form the grudge website and the movie bourne identity.
9. Near the front of "Sky Captain..." the female lead is sitting in an skyscraper-office typing. Behind her are several huge windows looking out over the city, from upon high. As she types, letters scroll across the windows where the view used to be. Minutes later, the female character goes to a movie house. the film CUTS to a CGI Camera view from up on a roof top. The CAM zooms down the face of the building and to the front door of the movie theatre. This is called an establishing shot.
I mention all this as I want to copy this basic structure. I'd like to have a "moving" home page that would be me sitting at a table writing something. The viewer would "hear" the music. Behind me would also be giant windows. the written music would start to scroll across the panes of the window just like "Sky Captain..."
Based on what street the CAM went, you would arrive at different scenes relevant to the kind of music I would like to display. There, like the "VMAX Motorcycle" web site, page 2, would be the selection of music with picture of as many cues that I had in that style, etc.
Can anyone help me and or give me advice? thank you and take care, all!Congrats on your endeavour.
It cannot be done in iWeb.
But I see you bought the tools for the project.
Now you also need to acquire the skills to make it all work.
Here's a page with samples to get you started:
http://www.wyodor.net/iFrame/
Adobe has a great forum too for all things releated Dreamweaver, Flash and all that stuff.
http://www.adobe.com/designcenter/ -
Hello,
I'm trying to create a page CFFORM flash page where the
cfgrid will display results base on a start and end date. The user
selects these 2 date. I am able to create this on 2 seperate pages,
but I would like it to be on 1 page via the flash remoting method.
Can some please help or point me in the right directions.
Thanks,Hi-
I copied your form code and submitted the variables back to
that page, and got no error, for what that's worth. My guess is
that the prob. might be in the page you're submitting to rather
than in the form itself? -
Flash banners and PHP...
Hey Flash ppl... LOL, I have a nice flash banner I did for my
gaming clans website. The issue is that it reload everytime anyone
goes to a new topic, post something or does anything that reloads
the page. Is there a script out there that I can place to get
around that? I know PHP is different then HTML... so I don't know
if there's a work around? Any help would be appreciated! Thanks!
http://www.shadowops.org/Forums/index.phpHi James,
That is one awesome looking banner! Good job!. I think you
hit the key about multiple platforms making one single page. You
noticed that when the page reloaded the flash reloads. This is
normal. One trick to get around that is by using a PHP equivalent
of an <IFRAME></IFRAME> in your php code. You develop a
way to reload the Iframe rather than the whole page. Or you could
go back to the older days and use the <FRAME> tag and only
reload the frame element.
Another way would be to develop an entire site in flash and
you only play the elements that need data to change. I am sure
there are other ways but this is a quick way out.
Again, great job on the banner!
Doug
Maybe you are looking for
-
ROS - where is questionnaire data saved in SRM?
Hi all, After the supplier completes the self registration (BSP ROS_SELF_REG), receives a questionnaire in his mail box. Then he fills out this questionnaire and sends back his response to SRM. In SRM the professional purchaser can view that answer
-
After update from IOS6 to IOS7 on my Ipad 2 my audio is distorted and noisy how do I correct this
-
I have a new requirement... Its a new development... so can any budy help me in followings... 1. Should I create a Cube or a DSO ? 2. If Cube... how to decide dimensions? Thanks...
-
Smooth scrolling long articles still snaps on iPad retina and mini
I have some long articles (between 6000px and 9000px). On the iPad 1 the smooth scroll works fine, but on the iPad retina and mini the articles are snapping to undefined points in the article. Now the articles are impossible to read on the iPad reti
-
JAX-WS generated WSDL uses xsd:import and no option to inline schemas
Is it possible to configure JAX-WS 2.0/2.1 so that when generating WSDL at runtime it will inline the schema definitions instead of using the <xsd:import> method? Unfortunately, some clients (Adobe Flex, for example) do NOT know how to process schema