Re: 1 Form, 2 Actions?



Kimmo Laine wrote:

Set the action to page3.php which has only the following:
<?php
if(isset($_POST['submit1']))
include('page1.php');
else if(isset($_POST['submit2']))
include('page2.php');
?>

And in the form you naturally have

<input type="submit" name="submit1" value="1">
<input type="submit" name="submit2" value="2">

Which presumes thes destination "action" is on his server. I'd think
that just by the fact that he's wanting to do it this way, would
suggest that the target form is on another box?

.



Relevant Pages

  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... Apache as the global web server user and thus needs world write ...
    (alt.php)
  • mysqli error?
    ... I'm just setting up my php enviroment and I typed in a simple script ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... web server itself is part of the group. ...
    (alt.php)