Re: 1 Form, 2 Actions?
- From: "Treefrog" <info@xxxxxxxxxxxxxxxxx>
- Date: 30 Mar 2006 05:46:11 -0800
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?
.
- References:
- 1 Form, 2 Actions?
- From: Mark
- Re: 1 Form, 2 Actions?
- From: Kimmo Laine
- 1 Form, 2 Actions?
- Prev by Date: Re: 1 Form, 2 Actions?
- Next by Date: Re: JavaScript to PHP?
- Previous by thread: Re: 1 Form, 2 Actions?
- Next by thread: Re: 1 Form, 2 Actions?
- Index(es):
Relevant Pages
|