|
Posted by NC on 10/30/23 11:41
calvinwohobbes@gmail.com wrote:
>
> I need help trying to send my post method to two php files. My form is
> so simple, it's like <form action="page1.php" method="post" ...
>
> What I want to do is to say, action="page1.php" and have the same post
> information to get sent to like a action="page2.php" How would one do
> this?
>
> An overview is that I have 3 checkboxes and a submit button, i'm
> already sending that information to page1.php but i want to send the
> exact same information to page2.php. Can anybody help me out with
> this?
You are leaving out a critical piece of information: is page2.php
supposed to produce output visible to the user, and, if so, can it be
combined with that of page1.php? If page2.php produces no output or
its output can be combined with that of page1.php, you can simply
include page2.php into page1.php; the $_POST array will be available to
both segments of code.
If page1.php and page2.php are supposed to be viewed sequentially, you
may want to consider an alternative data exchange mechanism such as
sessions.
Cheers,
NC
Navigation:
[Reply to this message]
|