Results 1 to 4 of 4

Thread: PHP forms

  1. #1
    Join Date
    Feb 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP forms

    I am new to PHP. In fact I only started yesterday after helpful advice on another thread.

    I have captured values from an HTML form to my PHP file. However there is two parts to the form. (i.e The first part is completed by the user but part two is completed by someone else.

    Is it possible to build a container and pass the values from the PHP file to another PHP file?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I'm not sure I understand what you want but if I do understand, you can use $_POST or $_GET to pass info from the form to another page. If you want something else, please try to explain it again.

    Good luck!

  3. #3
    Join Date
    Feb 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok here goes.

    I have a form that I have dveloped (HTML).

    The first part is completed by the submitter. The final part of the form is completed by someone else.

    1st part.
    The HTML values (Part 1) is sent to a PHP file. I have got this working fine.

    2nd Part
    From this PHP file the values from the HTML form is shown. Also the final part of the form can be completed. It then sends to another PHP file with all values collected. However here is when I am getting stuck. The second PHP file only collects values from Part2 and not the first part.

    Is there are way to capture all values?

  4. #4
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    Do you have access to a database like mySQL? You probably don't have that many fields in your form so it wouldn't take much to set it up. You could have pages submit to(your user form) and pages that pull from/update the records(admin pages)...which may make it easier if you wanted to add additional pages and they would all use the same thing with the values stored in the database.

    Ex.
    User form has fields A B C
    Admin form has fields D E F

    Both are filled out by those individuals and all values are stored in the database.

    If you do have access to a database and think that this is something you want to give a shot post back and we can help from there. Sounds like you already have a PHP page that processes the form so you can add a few lines to write the values to the database as well.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •