Flash, Forms, & PHP

I have a flash page I'm working on, and in it I have a form
to send out e-mail with. When I go directly to the .swf file the
form works, but when I go to an .html page where the .swf file is
embedded the form no longer works.
Anyone know what this could be off the top of their
heads?

Jrdnbaade wrote:
> I have a flash page I'm working on, and in it I have a
form to send out e-mail
> with. When I go directly to the .swf file the form
works, but when I go to an
> .html page where the .swf file is embedded the form no
longer works.
>
> Anyone know what this could be off the top of their
heads?
Could be that the SWF is in different folder than the HTML
document ?
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • 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.
    Maurice

    I 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]

  • I Need Dire Help Making a Flash Form

    Hello, I need some serious help creating a Flash Form.
    I Have used a template from another site with the following
    input boxes:
    Name: __________
    Email: __________
    Comments: ____________
    However, i had the script working fine, along with its php
    script,
    when i was trying to add more "text" boxes, i must have
    messed the script up somhow.
    When I submit that form, the name is send and email, but the
    email is blank.. ie, there is no "comments"
    here is the code:
    on submit button:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("email.php", "POST");
    sent email messege
    onClipEvent(data){
    // show welcome screen
    _root.nextFrame();
    and the php script (mailer.php)
    php form email.pho
    <?php
    * PHP 4.1.0+ version of email script. For more
    * information on the mail() function for PHP, see
    http://www.php.net/manual/en/function.mail.php
    // First, set up some variables to serve you in
    // getting an email. This includes the email this is
    // sent to (yours) and what the subject of this email
    // should be. It's a good idea to choose your own
    // subject instead of allowing the user to. This will
    // help prevent spam filters from snatching this email
    // out from under your nose when something unusual is put.
    $sendTo = "[email protected]";
    $subject = "My Flash site reply";
    // variables are sent to this PHP page through
    // the POST method. $_POST is a global associative array
    // of variables passed through this method. From that, we
    // can get the values sent to this page from Flash and
    // assign them to appropriate variables which can be used
    // in the PHP mail() function.
    // header information not including sendTo and Subject
    // these all go in one variable. First, include From:
    $headers = "From: " . $_POST["firstName"] ." ".
    $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
    // next include a replyto
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    // often email servers won't allow emails to be sent to
    // domains other than their own. The return path here will
    // often lift that restriction so, for instance, you could
    send
    // email to a hotmail account. (hosting provider settings may
    vary)
    // technically bounced email is supposed to go to the
    return-path email
    $headers .= "Return-path: " . $_POST["email"];
    // now we can add the content of the message to a body
    variable
    $message = $_POST["message"];
    // once the variables have been defined, they can be included
    // in the mail function call which will send you an email
    mail($sendTo, $subject, $message, $headers);
    ?>
    If anyone can see why the "comments" section is not being
    sent?
    Also: My original problem was how do you add more text boxes.
    I want something like this:
    Name:
    Address:
    Phone:
    Mobile:
    Email:
    Website:
    Comments:
    Ive spent days and days trying to work out how to first make
    a form that actually works, then add more text fields
    Ive looked at many basic form tutorials, but they all seem to
    only have 3 or 4 text fields.. Name, Email, Comments... etc
    I haven't a clue how to edit the script both in action script
    and php to add more fields easy.
    I really need some help with this, its turning into a
    nightmare for me.
    I can provide someone with my .fla project file if they care
    to take a look at what im doing wrong.
    Thanks
    Pan
    ps. Please note: "$sendTo = "[email protected]";" =
    this line i know i must put in my own email.

    This is all about timelines. It seems there is a movieclip
    named 'form' (or possibly an actionscript object, can't tell). Any
    variables created on that timeline are sent.
    So you could have your new textfields on another timeline.
    Or you could have textfields with no instance name in the
    form timeline.
    Those are the first two things to look at. Post the FLA and
    we can tell you more specifically.

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • 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

    Hi kglad. One. not sure how to "use the onData event of
    receiveLoad and see what error message you're getting." Sorry,
    don't use as2 very much. Two. I am doing all this on the same
    domain, so there should not be any security issues.
    I asked goDaddy what the problem might be and this was their
    (snarky) reply;
    "As you have already been informed, when using a flash form
    on your site, in the scripting for the form you will need to
    reference our SMTP server at relay-hosting.secureserver.net and
    this server does not require authentication."
    They gave me this code a couple of days ago and told me to
    stick this into my PHP code. It didn't help.
    This is beyond me I am afraid.

  • Flash Form Not Working In FF3

    I'm having trouble with cfform and flash forms. The forms
    work fine in IE, FF2, and Google Chrome. However for some reason
    the form isn't rendering under firefox 3. If anyone could help me
    out with why this is the url is here:
    http://city.richbank-studios.com:81/admin
    I can go directly to the cfswf file and renders fine in ff3,
    but something is not right with the embedding code or something
    because it won't render in the page.
    Thanks
    Terry

    I am having the same problem, Flash player 10 seems to have
    broken Firefox 2, 3 and Opera...
    I use the "Wimpy" flash button to stream Podcasts and Random
    songs on my site's front page, and as soon as I did the flash 10
    update, it stopped working for me, and many users whom I've talked
    to. Still works in IE 6 and 7..
    Even more funny, I created a Web Photo Gallery in Photoshop
    CS2, (Flash - Gallery 2) and it doesn't work either.
    Gallery is here:
    http://beastiemixes.com/images2/othersites/cnc/index.htm
    Podcast page is here:
    http://www.beastiemixes.com/podcasts.php
    On the podcast page, under "Stream" There's supposed to be
    little (|>) flash play buttons.

  • Flash Forms - Arghhh! 

    I have recently started studying chinese, and belive it or
    not, it is easier than creating forms.
    Here is the script for the form I have used:
    on (release) {
    varSender=new LoadVars()
    varSender.fname=fname
    varSender.surname=surname
    varSender.phone=phone
    varSender.email=email
    varSender.city=city
    varSender.send("
    http://www.mysite.net/email.php?",'','POST')
    and here is the php script:
    <?php
    $sendTo = "[email protected]";
    $subject = "My Flash site Form";
    $headers = "From: " . $_POST["fname"];
    $headers = "From: " . $_POST["surname"];
    $headers = "From: " . $_POST["phone"];
    $headers = "From: " . $_POST["city"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    mail($sendTo, $subject, $message, $headers);
    ?>
    For some reason, this has no effect. Anyone have any idea
    why? Anyone? Please?
    Thank you.

    Let's make a deal, I'll make you an Expert in "Flash Forms"
    in three days, if you can do that to me in Chinese?
    It's hard to say where your problem is with that description.
    One thing is, that you should specify a target (e.g. "_self"), the
    other problem could be with php or with the fla. (You would have to
    make sure that the propeties of the LoadVars are correctly set
    etc.)

  • Values from Flash to PHP

    I am using AS2 and passing some values from flash to php,  flash files is on page file1.php   values are passing fine , it pass values when user click button
    when button is pressed {  var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1 "; myVal.send("file1.php", "_parent", "POST"); }
    Problem: when it pass the values , it refresh the page and Flash File is also refreshed and Flash file start from frame 1 and all the values on flash becomes default  in other words when user click "file1.php" is sumbitted , so the page is refreshed What is the solution , that after passing values the page remains or flash reamins as it is ( not refresh the contents )

    use:
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1 "; myVal.sendAndLoad("file1.php", receiveLV,"POST"); }

  • LoadVars-using send to pass a variable from flash to php

    For the life of me, I've tried everything:
    I've researched LoadVars on Adobe forum, used David Powers'
    books, googled 'flash to php', LoadVars, etc. and tried
    sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS but I keep getting this same error. any advice
    please?
    I have a Unix server running Apache/PHP 4 - LoadVars worked
    to load name-value pairs into an array -see thread)
    My goal with this simple app is to prototype being able to
    pass a variable from flash to a variable in php.
    Parse error: syntax error, unexpected T_VARIABLE in
    flash_to_SQL.php on line 5
    Actionscript 2.0 code:
    var c :LoadVars = new LoadVars();
    c.testing = "123FOUR";
    c.send ("
    http://127.0.0.1/flash_to_SQL.php","_self","POST");
    php code: (I also tried $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS)
    <?php
    //mysql 4.1.2, php 4 , NO mysqli
    ecbo $_REQUEST ['testing'];
    /?>

    var formData:LoadVars = new LoadVars();
    formData.fname = "Name";
    formData.send("
    http://www.website.com/flash_php.php",
    formData, "POST");
    <?php
    $name = $_POST['fname'];
    echo $name;
    ?>

  • Flash form error, can't use the same name more than once? need workaround

    I've always written my forms to have multiple buttons, one
    for updating and one for deleting. so in html I would do this:
    <input type=submit name=action value=Update>
    <input type=submit name=action value=Delete>
    so I'm trying the same thing with flash forms in cold fusion:
    <cfinput label="Update" name="action" type="submit"
    value="Update">
    <cfinput label="Delete" name="action" type="submit"
    value="Delete">
    but now I get this message:
    2 Errors found.
    Error /index.cfm:334
    id 'action' was already defined on line 333
    Error /index.cfm:335
    id 'action' was already defined on line 333
    Is there a way to make this work or do I have to either
    create a special action_delete or a new form? I'd like to keep the
    logic the way I like.
    Any suggestions?
    Thanks,
    John

    I was hoping to do logic like this
    <cfparam name="action" default="list">
    <cfif action equal "list">
    <cfelseif action equal "update">
    <cfelseif action equal "detail">
    <cfelseif action equal "delete">
    </cfif>
    So I just converted everything to html and things work the
    way I like. thanks anyway. The forms don't really buy me anything.

  • Flash forms -- Not displaying in IE

    This is my first foray into flash forms, and I discovered
    yesterday that while they look/work beautifully in Firefox
    (2.0.0.4), they're not displaying at all in IE (6 or 7).
    I'm using it to force the user to input their date in a
    uniform format, so I'm sure there's a non-flash workaround. I'd
    like to get this sorted out though, so my future work with flash
    can be more involved.
    Code is attached. Please let me know if I can provide further
    clarification.

    Michael --
    Thanks for your help.
    I think I've narrowed the problem down -- it's not that it
    won't display my flash form in IE, it's that it won't display it in
    a Fusebox environment. I'm going to poke over at their site to see
    what they have to say -- I suspect I'll need to upgrade the version
    of Fusebox that I'm using. :)

  • How to validate date fields in the flash form

    i want to validate the date fields to make sure the values
    are not greater than today's date and from-date is less than or
    equal to to-date in the flash form. Does the actionscript have a CF
    DateDiff function for the validatation?
    Thanks

    I finally (after much reading up on actionscript) figured out
    my problem with date validation...which was similar to yours...
    I posted the solution I found for my AS date validation issue
    here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=22&threadid=1232361
    I hope it helps!!!

  • Flash forms in Safari 3.0

    I just installed the new Apple Safari 3.0 for Windows. I
    wanted to see how our web site would work with the new browser. I
    found that flash forms do not load. All I get is a blue lego block
    with question marks. I checked the plugins and there is a listing
    for "Shockwave Flash" version 9.0 r45. Is there something else that
    needs to be installed to make this work?
    Thanks,
    Don

    Count me on with the problem. We are running CF 7. I have
    also not found anything. I did report it using the little bug in
    Safari 3 and have been looking for the latest releases of the
    browser. I love the browser overall (I am an apple fan) but we need
    this to work. I am wondering if the problem is in how CF renders
    and puts out the flash content. Some kind of meta data that is not
    up to date? Have no clue however.
    Marius Morosanu
    [email protected]
    www.goreve.com

  • How to get "Subject" & "Message" text from Flash form to default e-mail MS Outlook?

    Hi,
    I have the following code which is working fine except I can't get the user typed data from flash form to my default e-mail (MS Outlook) application. How to edit the following code?
    In the code:
    1) To  ---->  this field is okay since this email ID doesn't change
    2) Cc  ---->  this filed is also okay since no changes will be in email ID
    3) Subject  ----> this may not be always as "Feedback", user may like to change the subject
    Whant I would like to add more here is:
    1) From  ----> this text to be retrieved from "fromText.txt" input text box
    2) Message  ----> this text to be retrieved from "MessageText.txt" input text box
    //1.Button event listener
    SendMail.addEventListener(MouseEvent.CLICK, SendEMail);
    //2.The SendMail function open up email application to send email.
    function SendEMail(event:MouseEvent):void {
    var email:URLRequest = new URLRequest("mailto:[email protected]?CC=[email protected]&Subject=Feedback");
    navigateToURL(email, "_blank");
    Thanks in advance for any support.
    Regards.

    Thanks for the reply. I tried the code and result is like the following:
    To: [email protected]
    Cc: [email protected]
    Subject: [object TextField]?body=From: [object TextField]
    Body: Blank
    The problem exist in SUBJECT & BODY.
    Further help, please.
    Thanks.
    PS: I removed the ? before body and put & ------> the result is as follows:
    To: [email protected]
    Cc: [email protected]
    Subject: [object TextField]
    Body: From: [object TextField]
               [object TextField]
    One more thing that it opens an empty web page with the following text in adress bar:
    mailto:[email protected]?CC=poweruser@helpdesk&Subject=Feedback

  • Flash Forms do not work in Production

    My question is simple. I am unable to find server
    requirements for Flash forms anywhere on Adobe's website. It claims
    you can find more in the other technical documentation but I
    couldn't. What technologies need to be installed in order to
    utilize flash forms SERVER-WISE?
    I have a production server, a pre-production server (running
    full cfmx7), and a development server. The application works on the
    test machine, and on pre-production. The flash form simply does not
    render and no errors are displayed.
    If I convert it to a normal cfform it displays fine on the
    troubled machine. It will not display even the most simple of flash
    forms.
    Thanks for any help!

    Did you make sure that you have a virtual directory mapped to
    the CFIDE directory in IIS on your production server?
    Ron

Maybe you are looking for