Re: 1 Form, 2 Actions?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: 1 Form, 2 Actions?

From: Treefrog <info@designstein.co.uk>
Date: Thu Mar 30 2006 - 15:46:11 CEST

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?
Received on Mon May 1 02:45:00 2006