I was hoping to get some help with a design issue. I am creating a
"Physician maintenance" web page that kind of does two things
The top part maintains physician information like his name, address
and so on.
The bottom part maintains the connection between physician and various
hospitals he works at. So in the bottom part, there is a series of
rows like so
Hospital Name Physician_Identifier (this being what the hospital
uses to identify the physician).
Hospital Name Physician_Identifier
Now a physician might stop working at a hospital in which case I need
to come into this web page and "disconnect" the two.
My initial thought was to add a button on the same line so it looked
like so
Hospital Name Physician_Identifier Disconnectbutton
Hospital Name Physician_Identifier Disconnectbutton
Then I'd use the OnClick attribute of the button to direct control
back to this same php page.
The top part of the page with the physician information has its own
submit button.
Now somehow the php script has to distinguish which button was pressed
and act accordingly.
Is this how a page like this is usually designed?
How does a php script distinguish between which button is pressed?
Kind of new to the web design/php game, so hope I am not asking
something glaringly obvious.