The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


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