Menu

Form Error in Firefox

Help
Jo Po
2009-05-29
2013-06-03
  • Jo Po

    Jo Po - 2009-05-29

    Form URL
    http://surelocknetworks.com/php/

    When submitting form - error page appears

    Link:
    http://surelocknetworks.com/php/processor.php

    Error Message:
    Warning: include(../confirm.html) [function.include]: failed to open stream: No such file or directory in /home/content/s/u/r/surelocknetwks/html/php/processor.php on line 29

    Warning: include() [function.include]: Failed opening '../confirm.html' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/s/u/r/surelocknetwks/html/php/processor.php on line 29

    When in IE - Form works fine and goes to confirm thank you page.

    Please advise

     
    • TNTEverett

      TNTEverett - 2009-05-29

      Try removing the relative link in the processor.php by removing the "../".

      include(confirm.html)

      Then move the confirm.html file to the same location as the processor.php file. 
      I don't use FireFox so I have never seen anything like this but from the error messages you sent this change seems logical. 

       
    • Jo Po

      Jo Po - 2009-05-29

      Oooh.. Almost Worked!!!

      I changed to: include(confirm.html)

      the confirm / thank you page appeared. Yay. But now...
      it pushed the HTML page down...

      And shows some other error message

      Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/s/u/r/surelocknetwks/html/php/processor.php:4) in /home/content/s/u/r/surelocknetwks/html/php/processor.php on line 8

      You may have to test a fill out the form in Firefox to it to show the error for you.

      THanks so much for the quick reply.

      Very much appreciated.

       
    • Jo Po

      Jo Po - 2009-05-29

      Here is the processor.php CODE

      <img height="900"
      src="../src/download.php?absolute_dl=true&amp;passed_id=1509&amp;mailbox=INBOX&amp;ent_id=2"
      width="1440" />
      <?php

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

      session_start();
      if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
      mail("info@surelocknetworks.com, tjohnson@surelocknetworks.com, mdavis@surelocknetworks.com, iufoma@surelocknetworks.com, simmke1@surelocknetworks.com", "New Prospect Inquiry", "Contact Details Below:

      How many employees do you employ?: " . $_POST['field_1'] . "
      How many company locations do you have?: " . $_POST['field_2'] . "
      Are you looking to expand your business foot print?: " . $_POST['field_3'] . "
      Do you have a mobile Sales Force?: " . $_POST['field_4'] . "
      Is Network Security a Major Concern?: " . $_POST['field_5'] . "

      Business Name: " . $_POST['field_6'] . "
      Busines Location: " . $_POST['field_7'] . "
      First Name: " . $_POST['field_8'] . "
      Last Name: " . $_POST['field_9'] . "
      email address: " . $_POST['field_10'] . "
      Office Number: " . $_POST['field_11'] . "
      Mobile Number: " . $_POST['field_12'] . "
      What is the best time to be reached?: " . $_POST['field_13'] . "
      Comments: " . $_POST['field_14'] . "

      ");

      include("confirm.html");
      }
      else {
      echo "Enter Security Letters on Form";
      }

      ?>

       
      • TNTEverett

        TNTEverett - 2009-05-30

        You've got some html outside the php tags.  It appears that this is somehow interfering with sessions and or the include function. 
        Since I can not see all the code, and all the changes you have made it is impossible for me to help you debug what you have done. 

         

Log in to post a comment.