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 Matt on 11/03/96 11:41

calvinwohobbes@gmail.com wrote:
> Ok, I made a wayyy too complicated reply before.
>
> Let me try to explain it from my understanding.
>
> inside topmenu.php
> this works
> //////////////////////////////////////////////////////////////////////////////////////////
> <form action="topMenu.php" method="post">
> <input type="checkbox" name="year_answer" value="Year"> Year
>
> $year_answer = $_POST[year_answer];
> if ($year_answer == 'Year')
> /////////////////////////////////////////////////////////////////////////////////////////
> That's how i use the check box in topmenu
>
>
> the code i have in gamelist.php is this
> /////////////////////////////////////////////////////////////////////////////////////////
> $year_answer = $_POST[year_answer];
> if ($year_answer == 'Year')
>
> and that will also work given i use this code in topmenu.php
> <form action="gamesList.php" method="post" target="mainFrame">
> <input type="checkbox" name="year_answer" value="Year"> Year
>
> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> So what i want to do is something like... <form action="topMenu.php"
> AND action="gamesList.php" ...
>
> How can i do this?
>
> thanks,
> Calvin
>
i think you're just going to have to have one file include the other.
Then the same $_POST'd array will be available to both

 

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

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