Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Form Question(s)

  • This topic is empty.
Viewing 15 posts - 16 through 30 (of 61 total)
  • Author
    Posts
  • #83354
    dhechler
    Member

    Try posting it at http://www.pastebin.com then giving us the link.

    #83341
    justaguy
    Participant

    Here you go, thanks for your patience!

    http://pastebin.com/3wtqQxJm

    #83342
    dhechler
    Member

    Got it.

    #83343
    dhechler
    Member

    OK, it has to do with your enctype. Lemme get an example mocked up for you.

    #83344
    justaguy
    Participant

    I appreciate your time guy.
    This is the smaller of the two forms I’ve employed.

    Sorry for the mess I’ve made of the coding, looks pretty embarrassing in pastebin

    #83345
    dhechler
    Member

    Heres the example i just mocked up.
    http://dev.wovenland.com/justaguy/

    PS. I’m not capturing any of the entered data. I promise.

    #83346
    dhechler
    Member

    Lemme know if that works. I will send you the code.

    #83347
    justaguy
    Participant

    Yea, it’s the php code that interests me atm. :)

    #83348
    dhechler
    Member

    here you go.

    Pastebin link

    #83349
    dhechler
    Member

    Its not just your PHP code. your enctype (which ive never declared before in a form) is wrong apparently.

    		 

    This line in your HTML form should have the “multipart/form-data” as the ENCTYPE

    #83350
    justaguy
    Participant

    OK! Wow! I’m going to take it for a spin in a few shakes.

    Thanks, I’ll report back …………

    #83338
    justaguy
    Participant

    Hey dhechler

    Here’s is how I modified it, more than likely it me, but I am getting a 404 error, and no email sent from site to my mailbox.

    http://pastebin.com/L8KnyCVF

    #83340
    justaguy
    Participant

    Changes made include:

    copy/paste new enctype in form html

    $subject line string

    Sheaders .= ‘From: My Site ‘ . “r/n/;

    and then everything below that, which is success page html

    Previously I was getting the success page in addition to a “no data capture e-mail”

    #83329
    dhechler
    Member

    I’ll be home in 10. I’ll look at it soon.

    #83333
    dhechler
    Member

    You forgot to close your PHP bracket

    ?>

    after

    mail($to, $subject, $message, $headers);
    //Send them back to the form page with a success message.
    // From here is the html to the success page after e-mail was $theResults = <<< EOD
Viewing 15 posts - 16 through 30 (of 61 total)
  • The forum ‘Back End’ is closed to new topics and replies.