You are here: Re: newbie question about multiple actions on php « PHP Programming Language « IT news, forums, messages
Re: newbie question about multiple actions on php

Posted by NC on 10/24/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация