This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

does php embeded code have differentprogram path than iframes


  1. jonb
    Member

    Last year I used iframes to embed the form in my web page, and made some modifications to confirm_embed.php. This year I have changed to use the php embeded code in the web page(it works a lot better), however it doesn't seem to go through the confirm_embed.php, or what is going through is different. I have confirmed the iframes code still works. Can you tell me if the php code somehow runs differently?

    Posted 12 years ago #
  2. yuniar

    Most likely this is PHP session issue. On the page where you embed the form, make sure to add this line of code into the first line of your page, before anything else:

    <?php session_start(); ?>

    MachForm Founder

    Posted 12 years ago #
  3. jonb
    Member

    thanks, but that didn't work. It doesn't seem to go thru the file confirm_embed.php. I actually removed that file, and the form still works. (but my customized code doesn't get invoked).

    Posted 12 years ago #
  4. jonb
    Member

    ok, I found it. The iframe code goes to embed.php which eventually goes to confirm_embed.php. However the php code never goes to embed.php, it calls display_machform directly and the code that is in confirm_embed.php(which I had to modify) is also in display_machform(which I have applied the same customization).

    Posted 12 years ago #

RSS feed for this topic

Reply