Re: [PHP] Calling a program
- Date: Mon, 30 Nov 2015 00:31:53 -0500
- From: Ken Robinson <kenrbnsn@xxxxxxxxx>
- Subject: Re: [PHP] Calling a program
At 11:36 PM 11/29/2015, Ethan Rosenberg wrote:
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
later in the program ...
echo "<input type='hidden' name='next_step' value='step14' />";
switch ( $_POST['next_step'] )
} //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.
Why are you including the script you want to start from the form?
You need to show us more of your script.
Normally you have a form
<form action='program.php' method='post'>
<input type='hidden' name='next_step' value='step14' />
When the form is submitted, the script 'program.php' is invoked.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php