52 users online (0 members and 52 guests)  


Page 2 of 3 First 1 2 3 Last
  Results 16 to 30 of 31

Related

  1. Please Help Me - CGI Mail Form    Forum: CGI Perl Forum
    Replies: 1
  2. Help, form mail    Forum: PHP Forum
    Replies: 0
  3. mail form birthdate    Forum: PHP Forum
    Replies: 1
  4. E-mail to a friend Form    Forum: HTML Forum
    Replies: 5
  1. #16
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    Could one of you now make the part where I put my email and such? The old one doesn't work with the coding changes made. But after I cahnge that b2tag/tagb2 it worked but had no email to send to.
    Here are the working files, just need the send adress stuff.

  2. #17
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    Opssies forgot to hit reply at the bottom. The forums wont let me upload!?! There we go.
    Attached Files Attached Files

  3. #18
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: PHP Form Mail Problem

    Code:
    if ($_POST['name']=="" || $_POST['age']=="" || $_POST['gender']=="" || $_POST['email']=="" || $_POST['instamsger']=="" || $_POST['ftp']==""|| $_POST['site']==""|| $_POST['username']==""|| $_POST['password']==""|| $_POST['geckos']==""|| $_POST['b2tag']=="" || $_POST['questions']=="")
    {
    echo "Blank submission or you didn't fill in some fields. Go back.";
    }else {
    // Send the message
    $ok = @mail("toemailaddress", "yoursubject", "yourmessage", "From: $email");
    if ($ok) {
    echo "Thanks, your email has been sent. I will get back to you as soon as possible";
    }
    else {
    echo "<p>Mail could not be sent. Sorry!</p>";
    }
    }
    Obviously, you need to change toemailaddress to your own email address, yoursubject will be whatever subject line you want for the email, and yourmessage will be whatever contents you want the email to have.

  4. #19
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    I added that and It came up with this error "Parse error: parse error, unexpected $ in /home/frozenb/public_html/formmailhosting.php on line 44" The line it is complaining about is the ?> after the php include.
    Attached Files Attached Files

  5. #20
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: PHP Form Mail Problem

    Your problem is in footer.php. See if you can spot the mistake first, then post the file here if you can't.

  6. #21
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    ^^ Thanks for your help thus far ^^
    Attached Files Attached Files

  7. #22
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: PHP Form Mail Problem

    I don't know if the following statement is necessarily incorrect:
    Code:
    <?php include("http://frozen-gecko.net/current/current.php"); ?>
    However, since you are running it from your own server, it should probably look like this instead:
    Code:
    <?php include "/current/current.php"; ?>
    I don't know if that's the only problem, but it's one that definitely stood out. Anyway, try that and let us know what happens.

  8. #23
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    Still the same error.

  9. #24
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: PHP Form Mail Problem

    Could you attach your whole script as it is right now? Feel free to mask email addresses (wouldn't want that to get in the hands of spammers). Just use something like email@mysite.net instead but leave the rest of the script as is. Don't forget to attach all the files. Thanks.
    We will get this working!

  10. #25
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    admin note: I removed the script for your protection. since it is an entire script you would be bound to see it on other sites.

    If you would like you can either email it...or if you do not care(and you own the copyright) you may repost it.
    Last edited by HTML; 10-12-2005 at 02:28 PM.

  11. #26
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: PHP Form Mail Problem

    try zipping it then attaching it... i doubt many other people other than ourselfs will look at it then!

    just a seggestion,
    -ALL

  12. #27
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    Okie.
    Attached Files Attached Files

  13. #28
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: PHP Form Mail Problem

    Find the following line in formmailhosting:
    Code:
    "From: $email");
    and change it to:
    Code:
    "From: $email");
    }
    Also, you will need to assign variable names to your $_POST variables if your email send is to function properly. For example:
    Code:
    $name = $_POST['name'];
    Repeat that same type of code for the remainder of your form variables.

  14. #29
    FrozenGecko's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    13

    Re: PHP Form Mail Problem

    It works!!! Thanks for all your help!!!

  15. #30
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: PHP Form Mail Problem

    i told you it would be something simple!!!

    what is more simple than a missed "}"?



Page 2 of 3 First 1 2 3 Last

Tags for this Thread