Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 5 of 5

Thread: Help me solve this Script...little confused

  1. #1

    Help me solve this Script...little confused

    Hi guys,

    I am having a problem with this php script:

    PHP Code:
     
    <?
     
       $to 
    "myemail@domain.com";
       
    $msg "Name:" $name \n\n;
       
    $msg .= "Subject:" .  $subj \n\n;
       
    $msg .= "GSM:" .  $gsm \n\n;
      
    mail($to$subj$msg"From:" $email \nReply-To$email\n");
    ?>
    Here in the top PHP script its appearing as only nn by actually its \n\n.

    Actually i want when the person sends me mail using flash it should join with this php script. I have already done that I have added this to my flash button:

    Code:
    on(release) {
     if (name == undefined || gsm == undefined || email == undefined ||  subj == undefined) {
      gotoAndStop("error");
     }
     else {
      loadVariablesNum("form.php",0,"POST");
      gotoAndStop("sent");
     }
    }
    It works and tells me sent by going to the frame etc ..etc. But when it mails me i want it to specify which is the Name, GSM in the body. The email should come in the From: and the Subject in the Subject.

    Like:

    Name: whatever
    GSM: 99999999

    I hope you guys are getting me.

    Thanks in advance,
    Regards.
    Last edited by designursite; January 24th, 2007 at 08:07 AM.

    ...interactive designing
    Buy templates, flash websites for a very low price & you
    can also learn with our different tutorials for free
    Vist our new site: www.earnrr.com

  2. #2
    mail($to, $subj, $msg, "From: {$email} \nReply-To: {$email}\n");

  3. #3
    In fact, that was in the original code i sent you


    member #1 of the "XML-is-a-crutch-to-make-people-feel-elite-club"
    K-Emmys-06: Best Quote K-Emmys-06: Flash Genious

  4. #4
    oh .. lol

    i dont really know what you want, but youre missing some quotes. if php is tossing errors at you, you need to put the quotes in:

    PHP Code:
     <?
     
       $to 
    "myemail@domain.com";
       
    $msg "Name:" $name ."\n\n";
       
    $msg .= "Subject:" .  $subj ." \n\n";
       
    $msg .= "GSM:" .  $gsm ." \n\n";
       
    mail($to$subj$msg"From:" $email ."\nReply-To: ".$emailn);
    ?>

  5. #5
    Thanks a lot guys....everything is working just fine...

    Regards,
    Ibrahim.

    ...interactive designing
    Buy templates, flash websites for a very low price & you
    can also learn with our different tutorials for free
    Vist our new site: www.earnrr.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012