PHP HELP ME>>>>>
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: PHP HELP ME>>>>>

  1. #1
    Member
    Join Date
    Dec 2000
    Posts
    50
    have created three input text fields and have them the following variables

    Name
    Message
    Comments

    on the button i have put

    on (release) {
    if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
    gotoAndPlay ("invalid");
    } else {
    loadVariablesNum ("form.php", 1, "POST");
    gotoAndPlay ("valid");
    }
    }

    and here is the PHP code which was given to me.....but i am having problems can someone HELP.....

    <?
    /* subject */
    $subject = "Yuggi";

    /* additional header pieces for errors, From cc's, bcc's, etc */
    $headers = "From: $name <$email>\n";
    $headers .= "X-Sender: <$email>\n";
    $headers .= "X-Mailer: PHP\n"; // mailer
    $headers .= "X-Priority: 1\n"; // Urgent message!
    $headers .= "Return-Path: $name <$email>\n"; // Return path for errors

    /* recipients */
    $recipient = "chillpillsmile@hotmail.com";

    /* message */
    $message = $comments;

    /* and now mail it */
    mail($recipient, $subject, $message, $headers);

    Know i i have tried playing around but IT IS NOT WORKING and i am not receiving any emails.....

    PLEASE CAN SOMEONE HELP ME>>>>>>>>.


    [Edited by Yuggi on 02-13-2002 at 09:07 AM]

  2. #2
    Moderator
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    unless you are trying this at your own computer, the recipient should by a complete email address

    Musicman

  3. #3
    Member
    Join Date
    Dec 2000
    Posts
    50
    Yeah sorry I know that but forgot to finish it .....any ideas what else could be wrong?



    Originally posted by Musicman
    Hi,

    unless you are trying this at your own computer, the recipient should by a complete email address

    Musicman

  4. #4
    Moderator
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    what happens if you call the script from browser?

    Musicman

  5. #5
    Member
    Join Date
    Dec 2000
    Posts
    50
    what do you men call the script from the browse.
    do you have icq....? 123294377
    if you mean when i submit the then the movies goes the valid label.....

    Originally posted by Musicman
    Hi,

    what happens if you call the script from browser?

    Musicman

  6. #6
    Try my mail script mate, then it will work

    <?php
    //mail script by chewie AKA pottypotsworth
    mail("YOUREMAILADDRESS@YOURDOMAIN.COM", "SUBJECT LINE",

    "Main Body of e-mail is below:
    Name = $name
    Message = $message
    comments = $comments

    ", "From:$name");
    ?>

    O.k use that script and it will work i made that myself and use it all the time,

    if you DON'T edit that script before you have tested it you will see what it looks like when you have received the e-mail, then you can edit it to your liking.

    Hope that helps and if you still have problems giv me a shout!

    *~Chewie~*

  7. #7
    Member
    Join Date
    Dec 2000
    Posts
    50

    PHP

    I take it i just need to cut and paste, correct? where is the ";" after each line and also isn't there a place where is shows how the email appears at my address....

    IE
    mail($name, $subject, $email, $comments);

    sorry to be a pain.....i have been trying to get this sorted for days.....





    <?php
    //mail script by chewie AKA pottypotsworth
    mail("chillpillsmile@hotmail.com", "SUBJECT LINE",

    "Main Body of e-mail is below:
    Name = $name
    email= $email
    comments = $comments

    ", "From:$name");
    ?>

    O.k use that script and it will work i made that myself and use it all the time,

    if you DON'T edit that script before you have tested it you will see what it looks like when you have received the e-mail, then you can edit it to your liking.

    Hope that helps and if you still have problems giv me a shout!

    *~Chewie~* [/B][/QUOTE]

  8. #8
    <?php
    //mail script by chewie AKA pottypotsworth
    mail("chillpillsmile@hotmail.com", "SUBJECT LINE",

    "Main Body of e-mail is below:
    Name = $name
    email= $email
    comments = $comments

    ", "From:$name");
    ?>

    O.k SUBJECT LINE will be the subject line that appears in your inbox e.g Email from website!

    you don't need the : because this bit
    "Main Body of e-mail is below:
    Name = $name
    email= $email
    comments = $comments

    "

    Is the part which will appear in your actual e-mail!!

    and the From:$name is the from field in your e-mail and $name is your name variable!

    Just try the script and all wil be clear!

    although i think i might have seen a problem in your
    loadVariablesNum ("form.php", 1, "POST");

    if it doesnt work we will go thru that next

    and yeah just copy and paste!

    [edit] Tell me ALL the variables that are fields in your e-mail form in flash![/edit]
    [Edited by pottypotsworth on 02-13-2002 at 01:07 PM]

  9. #9
    Member
    Join Date
    Dec 2000
    Posts
    50

    Smile YOU ARE A LEGEND

    YOU ARE A LEGEND AND THANK YOU SOO OOOOOO MUCH IT WORKS AND NOW I WILL NOT HAVE ANYMORE HEADACHES ....


    THANKS ALOT



    Originally posted by pottypotsworth
    <?php
    //mail script by chewie AKA pottypotsworth
    mail("chillpillsmile@hotmail.com", "SUBJECT LINE",

    "Main Body of e-mail is below:
    Name = $name
    email= $email
    comments = $comments

    ", "From:$name");
    ?>

    O.k SUBJECT LINE will be the subject line that appears in your inbox e.g Email from website!

    you don't need the : because this bit
    "Main Body of e-mail is below:
    Name = $name
    email= $email
    comments = $comments

    "

    Is the part which will appear in your actual e-mail!!

    and the From:$name is the from field in your e-mail and $name is your name variable!

    Just try the script and all wil be clear!

    although i think i might have seen a problem in your
    loadVariablesNum ("form.php", 1, "POST");

    if it doesnt work we will go thru that next

    and yeah just copy and paste!

    [edit] Tell me ALL the variables that are fields in your e-mail form in flash![/edit]
    [Edited by pottypotsworth on 02-13-2002 at 01:07 PM]

  10. #10

    see told you all would be clear once you tried it :)

    No probs, anytime!

    If you have any other flash/PHP related problems, you know where to find me

    hehe

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

Poll by Flashkit.com