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

Passing on GET[] data.


  1. WarPig
    Member

    Hello Yuniar/All,

    First of all, awesome php package! I'm buying this for every client set
    up we have! Saves us a lot of time by taking out a lot of the manual
    markup normally required to administer forms like this!

    Anyway, I have one question for you that's been bugging me for a while:
    I understand your time is important, so I'm willing to pay you for your
    time and effort!

    I'm trying to pass on a hidden field on the edit_form.php page through an external link like so:

    edit_form.php?form_owner=1

    Where would I need to put the

    code<input type="hidden" name="form_owner" value="<?php print $_GET[form_owner]; ?>">code

    in the edit_form page so it can pass it on to the processor (save.php?)

    The form_owner is already a column in the ap_forms table. How do I go
    about getting that inserted as well as updated after I have created the
    form or when I modify it? e.g. when I go to edit it
    (edit_form.php?id=6), it saves the form but wipes out the form_owner id
    I've manually updated through the db.

    I've looked in save.php and saw where it adds

    $result = ap_forms_insert($form_input);

    but how do I get that field on the edit_forms page to push my hidden
    field so it makes it part of the form_input[array]?

    In save.php I've added

    $form_input['form_owner'] = $form_object->form_owner;

    after

    $form_input['form_id'] = $form_id;

    Any pointers?

    Posted 16 years ago #
  2. yuniar

    oops.. I think I've replied to this in our email session


    MachForm Founder

    Posted 16 years ago #
  3. WarPig
    Member

    Yes indeed! Thank you very much for the help and the extremely fast response! I think someone mentioned this before, but do you ever eat or get any sleep? :)

    Again, great software package and awesome support - You definitely have a repeat customer here!

    Posted 16 years ago #
  4. yuniar

    Thank you! :-)


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply