Menu

Submission won't post to email

Help
jason
2007-08-03
2013-06-03
  • jason

    jason - 2007-08-03

    Hi, I'm a total noob and don't know a thing about php, but here's what I did.
    1.  created a form using v3.0 online ~ http://www.phpformgen.com/page_home.php?form_id=8501
    2.  opened up a free php hosting acct at joolo.com
    3.  used FTP prog to upload all of the files in the zip archive to joolo
    4.  form looks great, it just gives a 404 upon submission ~ http://jkibbe.joolo.com/form.html

    any ideas?  thanks in advance!  :)

    jason

     
    • TNTEverett

      TNTEverett - 2007-08-03

      It does not appear you have installed all the files necessary.  The 404 error means that the processor.php file is refering to another page, probably confirm.html, that does not exist. 

       
    • jason

      jason - 2007-08-03

      I uploaded all of the files from the provided ZIP archive.  Here's processor.php...

      <?php

      $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

      mail("lsbert@yahoo.com","phpFormGenerator - Form submission","Form data:

      Last Name: " . $_POST['field_1'] . "
      First Name: " . $_POST['field_2'] . "
      Street Address: " . $_POST['field_3'] . "
      City: " . $_POST['field_4'] . "
      State: " . $_POST['field_5'] . "
      Zip Code: " . $_POST['field_6'] . "
      Phone Number: " . $_POST['field_7'] . "
      Email Address: " . $_POST['field_8'] . "
      Amount of Monthly Pledge: " . $_POST['field_9'] . "

      powered by phpFormGenerator.
      ");

      include("confirm.html");

      ?>

       
      • TNTEverett

        TNTEverett - 2007-08-03

        You have to confirm you have all the files yourself.  You can see that the confirm.html file is referenced.  Does it exist??
        You can also try comenting out or removing the line

        $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

        It does not appear to be used in your processor.php file. 

         
    • jason

      jason - 2007-08-03

      It appears to have worked after deleting the line you specified.  I just need to check with my friend to ensure that he got the test email since it posts to his account...

      Thanks for your help, I really appreciate it! 

      Jason

       
    • jason

      jason - 2007-08-03

      Okay, I'm bummed again!  The email never arrived into my friend's inbox or spambox.  I doubled-checked the address, then switched it to my email address to look into it further.  It looks like the form works since the confirm.html page loads after the submission, but the email doesn't arrive.  Any more ideas?  Thanks again!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.