Thread: Multi-part Form

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    3
    Rep Power
    0
    This is driving me nuts! Why doesn't this work?


    /* Form 1 */
    <form action="form2" name="form1">
    <input type="text" name="first_name">
    <input type="submit">
    </form>

    /* Form 2 */
    <form action="form3" name="form2">
    <input type="hidden" name="first_name" value="<? echo "$first_name"; ?>">

    <input type="text" name="last_name">
    <input type="submit">
    </form>


    /* Form 3 */
    <form action="form4" name="form32">
    <input type="hidden" name="first_name" value="<? echo "$first_name"; ?>">
    <input type="hidden" name="last_name" value="<? echo "$last_name"; ?>">

    <input type="text" name="age">
    <input type="submit">
    </form>

    /* Form 4 */
    <? echo "$first_name"; ?>
    <? echo "$first_name"; ?>
    <? echo "$age"; ?>

    ******************************

    When I try this the hidden form fields are not filled in and carried to the next form. What am I doing wrong?

    Thanks!

    Jeff

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    3
    Rep Power
    0
    Simple solution found... Nothing like beating your head against a brick wall...

    http://www.builder.com/Programming/PHPIntro/ss03.html

Similar Threads

  1. Avoid form resubmission when REFRESH clicked
    By rahulgup in forum ASP Programming
    Replies: 0
    Last Post: February 5th, 2004, 01:21 PM
  2. HTTP Error 400: Bad Request, with basic form
    By crackwombat in forum PHP Development
    Replies: 1
    Last Post: January 23rd, 2004, 06:40 PM
  3. Multi page form posting
    By evanloran in forum PHP Development
    Replies: 4
    Last Post: January 15th, 2004, 06:35 AM
  4. form creation using php
    By emzyme in forum PHP Development
    Replies: 4
    Last Post: January 15th, 2004, 06:23 AM
  5. Replies: 0
    Last Post: January 8th, 2004, 07:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo