Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7

Thread: Multiple Forms

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    11
    Member #
    2142
    CAn you have multiple forms (not form fields, but forms, each with a different submit) on one web page? just quick yes/no plz

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Yes, but you can only submit one at a time.

  4. #3
    Junior Member
    Join Date
    Jul 2003
    Posts
    11
    Member #
    2142
    yup, i realize that, that's part of the function of the site

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Just make sure not to embed any of the forms into eachother... you can confuse some browsers taht way.

  6. #5
    Junior Member newchance's Avatar
    Join Date
    Feb 2007
    Posts
    15
    Member #
    14865
    Additional question on the topic above.............
    If I have different forms on one page -
    can I create tables in one and the same database - for inserting
    the results from forms?
    Guess that would take different 'insert.php' pages to process though?

    As you can see - i'm fairly new to the this
    newchance

    Protect your identity - Enroll here

  7. #6
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Yes you can create multiple forms on the same page which insert into various different database tables, or indeed the same tables.

    What you could do is have a hidden form field in each form which has the action, ie add, delete. edit and so on.

    Something like

    HTML Code:
    <form ...>
      <input type="hidden" name="action" id="action" value="del" />
    </form>

  8. #7
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    Quote Originally Posted by newchance
    Additional question on the topic above.............
    If I have different forms on one page -
    can I create tables in one and the same database - for inserting
    the results from forms?
    Guess that would take different 'insert.php' pages to process though?

    As you can see - i'm fairly new to the this
    newchance

    ok from what i gather, yes you could use a single php page, just submit a hidden form field, to tell the difference between the forms or something of the sort, and put them into the same database with a unique id for the form
    Thee Pyro Wolf


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:30 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com