|
1 line php cover function changes result of called programs
I am running php under apache for development programs at home. I ran into a prob on a simple html form when adding a new layer of calling programs. Boiled down to this: I have a simple HTML form generated by a php program. When called directly(from my browser) this form runs fine and executes the "action" program on clicking the submit button. When called from a 1 line cover file with the line: include('formprogram.php') the form displays but will not run the action script on clicking submit. I say this as I stick an exit line, and various echo's at the top of the action script and it is not triggered. However if I run the "form script" directly it prints my echo's and exits.
Perhaps a clue: the browser window when run from the cover program shows(after submit button is clicked) the address of /coverprogram/actionprogram. Input is cleared, but the action program does not seem to run..
This has now been fixed-I specified the directory just by adding the / in the form action='/actionprogram.php'. I don't quite understand why calling from some prgrams require this when they are all in the same directory, but it is fixed.
Any ideas on how to get to the bottom of this.
also-all programs lie in the same directory.
I appreciate any ideas. New to the board, thanks in advance.
Last edited by schgid : 03-May-2005 at 11:27.
Reason: fixed but still wonder why
|