Jump to content
Killersites Forums

jlhaslip

Advanced Member
  • Posts

    524
  • Joined

  • Last visited

Posts posted by jlhaslip

  1. For future reference, here is a "Redux" form file that shows how to handle a form on a single page.

    >
    $page_title = 'redux';
    
    // Check if the form has been submitted.
    if (isset($_POST['submitted'])) {
    
    // handle form script here
    
    } // End of main isset() IF.
    
    // Leave the PHP section and create the HTML form.
    ?>
    Build postal code file
    </pre>
    <form action="" method="post">
    
    File: 
    
    
    
    
    </form>

    Notice the 'hidden' submitted value that is used to determine whether to perform the php code. It ignores handling the form data and processing the php section unless the hidden value "isset", like on the initial presentation of the form.

    As noted above, sometimes it is preferable to use the multiple files.

  2. You need to validate your data differently.

    Check to see if the form has been submitted by checking for a 'hidden' form value instead of isset.

    Also, you need to throw an error if the form is not completed properly.

    In addition, you would be better off not using the REQUEST array. Use POST instead. Look at your form to see which action you are using.

  3. virtual, try the site at this link: http://www.websiteoptimization.com/services/analyze/

     

    You could try it both ways and see if it makes a difference.

     

    There is also a Yahoo! service which will assist by measuring the parts of the page that are slowing you down, but I'll need a bit of search time in order to provide a link. I seem to have lost it. I go search right now.

     

    http://developer.yahoo.com/yslow/

×
×
  • Create New...