People database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KS

    People database

    Hi,
    We are developing a webpage for our group, which shows the details of
    the people working in the groups. For example: Last name, First name,
    Status, Phone, Fax and Mailing address.
    One of us is supposed to take care of new people being added to database
    and shown on the webpage. We have a page to put in the details(a form),
    which calls a php script. The script checks if there is another person
    with the same name in the database and shows the options depending on
    the result. If there is someone three buttons appear: Update, Reset, and
    Add New. If there is none, two buttons appear: Add New and Reset. I want
    to know, if I have different scripts for "Add New", "Reset" and "Reset",
    will the $_POST variables(gener ated by the first form for details) be
    passed to these scripts.

    Any other suggestions?

    Thanks.
  • Andy Hassall

    #2
    Re: People database

    On Tue, 02 Mar 2004 15:13:23 -0500, KS
    <boneywasawarri orvayayixSPAM@M APSyahoo.com> wrote:
    [color=blue]
    >I want
    >to know, if I have different scripts for "Add New", "Reset" and "Reset",
    >will the $_POST variables(gener ated by the first form for details) be
    >passed to these scripts.[/color]

    If you're asking what I think you're asking, no, since a <form> can only have
    one action attribute, so always gets submitted to the same script. But you can
    work out which of the submit buttons were pressed by giving them a name and
    value attribute.

    --
    Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
    <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>

    Comment

    • KS

      #3
      Re: People database

      Andy Hassall wrote:[color=blue]
      >
      > If you're asking what I think you're asking, no, since a <form> can only have
      > one action attribute, so always gets submitted to the same script. But you can
      > work out which of the submit buttons were pressed by giving them a name and
      > value attribute.
      >[/color]
      I was planning to write three scripts for three forms. One button in
      each form calls a different script.

      Comment

      Working...