Calling a program
| From: | Ethan Rosenberg | Date: | Mon, 30 Nov 2015 04:36:00 +0000 |
| Subject: | Calling a program | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-325258@lists.php.net to get a copy of this message | ||
Dear List -
Can you not call a PHP script from a form -- action = 'program.php'? In my hands it does not work...
I have tried the following
include program.php;
later in the program ...
form
.
.
echo "<input type='hidden' name='next_step' value='step14' />";
.
.
.
.
switch ( $_POST['next_step'] )
{
case 'step14':
{
P7a.php();
} }
} //end Switch
The result of this is that program.php runs at the start of the script, and step14 is never called.
I am totally confused.
If you need more details, please specify.
TIA.
Ethan