Appnitro Software Forums » MachForm

include form in other page

(2 posts)

  1. ionghe
    Member

    Hi,

    I use a form (my_machform.php) into other page:
    http://www....ro/ps/admin.php?id=my_machform

    admin.php page include "my_machform.php" file with this code:
    include("../admin/$id.php");

    The form working very nice but if I enable "Show Review Page Before Submitting" option, after preview, I get this error:

    Warning: include() [function.include]: Failed opening '../admin/3.php' for inclusion (include_path='.:/usr/lib/php') in /home/pescuitu/public_html/ps/admin.php on line 202

    Please, o solution ?

    Thank You !

    Posted 1 year ago #
  2. ionghe
    Member

    The problem solved !

    The same name of "$id" variable is used in my script and in machform script (preview) !

    Thank you !

    Ion

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.