A Flash Developer Resource Site

Page 7 of 7 FirstFirst ... 34567
Results 121 to 126 of 126

Thread: PHP not working?

  1. #121
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    one minor thing:
    you somewhere have a colon rather than a semicolon:
    Code:
    <?php get_data("references"):?>
    another minor thing: the email From header should read
    Code:
    From: "Application form" <you@yoursite.com>
    so in php you want to say
    Code:
    $headers = "From: \"Application form\" <you@yoursite.com>";

  2. #122
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Hey Guys,

    Thanks for your help, getting things working again, started modifying it again

    and every time i attempt to submit it im getting 'Your email could not be sent at this time, (you've probably guessed i don't know a great deal about PHP, id rate my experience as novice)

    http://www.55thdoncasterscouts.com/onlineapp.txt << theres the code again,

    if you could give me an explanation in to how i went wrong it would be brilliant as i really want to broaden my knowledge on PHP (going to Uni soon to study Web Information systems & services , which engages in a considerable amount of PHP

    Cheers!

  3. #123
    Member
    Join Date
    Jan 2009
    Posts
    37

    Very useful thread

    I am a newbie in flash but I am working to change that. Here is a newbie question for how often phpbb version change and if I use phpbb interface on my site I don’t need to use flash action script to create an interface?
    I am designing my page using flash .swf
    Can I use flash action script and phpbb on my page at the same time to have an interface?

  4. #124
    Junior Member
    Join Date
    Feb 2010
    Posts
    4

    Please help on this php Flash interaction problem

    Hi,
    It appears everyone gets a solution here...
    Please help me too in resolving my problem related to passing of the login user detail from php to flash.

    www.falifa.com
    username: self_falifa1@live.com
    pass: bijothomas
    Please Click on Family Tree TAB.

    Family Tree.swf displays the Familytree of the login user. For some strange reasons, the familytree is not displayed when accessed from certain machines. It appears that, this is because login userID is not passed properly to swf.

    Kindly point out to me, what could be possibly wrong.

    Thanks and Regards
    Bijo

  5. #125
    Junior Member
    Join Date
    May 2010
    Posts
    3

    help!!!!!!

    here's the PHP script I'm using to send mail with PHP from Flash. I have tried so many differents ways but no success.

    The form has 3 input text boxes: theName, theEmail and theMessage

    For a while I was receiving an empty email. Now I'm no longer getting anything. ALso I don't get any return message.


    PHP Code:
    <?php

    if(!empty($_POST['theEmail'])    || !empty($_POST['theMessage'])    || !empty($_POST['theName']))
    {    
        
    $to "mathieubazinet@hotmail.com"
        
    // replace with your mail address    
        
    $s_name $_POST['theName'];    
        
    $s_mail $_POST['theEmail'];    
        
    $subject "Demande d'information';    
        
    $body = stripslashes($_POST['theMessage']);    
        
    $body .= "\n\n---------------------------\n";    
        
    $body .= "Mail sent by$s_name <$s_mail>\n";    
        
    $header = "From$s_name <$s_mail>\n";    
        
    $header .= "Reply-To$s_name <$s_mail>\n";    
        
    $header .= "X-MailerPHP/" . phpversion() . "\n";    
        
    $header .= "X-Priority1";    
        if(@mail(
    $to$subject$body$header))    
        {       
            echo "
    output=sent";    
        } 
        else 
        {        
            echo "
    output=error";    
        }

    else 
    {    
        echo "
    output=error";
    }
        
    ?>
    Actionscript Code:
    stop();

    var senderLoad:LoadVars = new LoadVars;
    var receiveLoad:LoadVars = new LoadVars;

    sender.onRelease = function()
    {
       
        senderLoad.theName = theName.text;
        senderLoad.theEmail = theEmail.text;
        sendeeLoad.theMessage = theMessage.text;
       
        senderLoad.sendAndLoad("http://jessicagoyette.com/flash/form.php",receiveLoad);
       
       
       
    }

    receiveLoad.onLoad = function()
    {
        if (this.sentOk)
        {
            _root.gotoAndStop("success");
        }
        else
        {
            _root.gotoAndStop("failed");
        }
       
    }

  6. #126
    Junior Member
    Join Date
    Feb 2012
    Posts
    1
    #6 works for me, seven also works, but not 5
    tallbrownferret@gmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center