General question about data flow in a php routine
Posted: Sun Feb 12, 2012 4:55 pm
This is my first post on this forum and most likely will not be my last. As a matter of introduction, I am 72 years of age and a retired Systems Analyst/Programmer in the geophysical field. My experience in languages was with Assembler and Fortran IV. Unfortunately I retired before HTML and PHP was around.
I am attempting to modify a php routine that is part of a software package I have running on my website. The routine is written as a combination of php and HTML. The php code does some initialization, includes some code and connects to the data base. The HTML code then displays the welcome page with a couple of menus that get into the rest of the package.
What I would like to do is add some code that would branch out to a "subroutine" (for the lack of proper terminology), wait for the user to click on an option, and then return to the original code after the "subroutine" call.
The problem I have is not knowing the proper terminology. In Fortran I would use a CALL Subroutine (arg1,arg2) which would transfer to the Subroutine and once finished the Subroutine would return control to the calling program at a point past the arguments. Is there something either in PHP or HTML that would accomplish something like this?
Thank you,
Klaus Dieter Cook
Houston, Texas
I am attempting to modify a php routine that is part of a software package I have running on my website. The routine is written as a combination of php and HTML. The php code does some initialization, includes some code and connects to the data base. The HTML code then displays the welcome page with a couple of menus that get into the rest of the package.
What I would like to do is add some code that would branch out to a "subroutine" (for the lack of proper terminology), wait for the user to click on an option, and then return to the original code after the "subroutine" call.
The problem I have is not knowing the proper terminology. In Fortran I would use a CALL Subroutine (arg1,arg2) which would transfer to the Subroutine and once finished the Subroutine would return control to the calling program at a point past the arguments. Is there something either in PHP or HTML that would accomplish something like this?
Thank you,
Klaus Dieter Cook
Houston, Texas