ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Processing Script Requirements (click form, go to proc script, return to original page)?

October 28, 2011 3:32pm

Subscribe [2]
  • #1 / Oct 28, 2011 3:32pm

    levlane

    32 posts

    Hello all.
    I have a regular EE page within our site. All is working well.
    In one of these pages I am submitting a basic HTML form with the action pointing to a php processing script. For the sake of the experiment, I am simply including the following in the script

    <?php
    
    header('Refresh: 2;URL='show-your-jomar-contest');
    
    
    ?>

    The form submits and the address bar displays the correct address showing me that it did advance to the script but I receive the same error as when I key in a page that doesn’t exist (there is no current 404 handling set)

    The proc script code is in a new template and contains only the code above.

    PHP is enabled and set to output (and was set to input)

    Eventually the script will execute a bunch of functions, but for now I am just trying to get the redirect to work within EE to make sure I know how to incorporate php scripts into EE.

    Any thoughts?
    I figure it is trying to see the script as a ‘page’ since it is looking to segment_1 which is currently the script but without a true template, it is stuck?

    I was wondering if there were any special handling required.

    FYI - I am very familiar with FreeForm and direct MySQL and native DB processing. This will be used for something else.

    Thanks
    Rich

     

     

  • #2 / Oct 29, 2011 5:04am

    Mark Bowen

    12637 posts

    Hi Rich,

    What you are trying to do here is unfortunately outside of the scope of our support as it is a highly custom solution it looks like you are trying to implement here.

    I’m going to therefore move this thread over to the Community Help forums for you to see if anyone there can help out on this one.

    Only thing I would say is have you tried adding in an exit(); statement after the header refresh statement to see if that works at all?

    Thanks,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases