Kto-Eto Posted March 2, 2013 Report Share Posted March 2, 2013 Вообщем на странице у меня есть поля <form action="action.php" method="POST"> <br><center>1asdasd <br><input type="text" name="vozrast" size="30" maxlength="20" /></br> <br>2 asdasd <br><input type="text" name="vozrast" size="25" maxlength="20" /></br> <br><input type="submit" name="button" value="Отправить"></center></br> </form> Тоесть вся страница выглядит вот так: <?php define( 'IPB_THIS_SCRIPT', 'public' ); require_once( '../initdata.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); $registry = ipsRegistry::instance(); $registry->init(); $content = <<<BLK <form action="action.php" method="POST"> <br><center>1asdasd <br><input type="text" name="vozrast" size="30" maxlength="20" /></br> <br>2 asdasd <br><input type="text" name="vozrast" size="25" maxlength="20" /></br> <br><input type="submit" name="button" value="Отправить"></center></br> </form> BLK; $registry->output->setTitle('Zakaz-Servers'); $registry->output->addContent($content); $registry->output->sendOutput(); ?> Как реализовать,чтобы при нажатии на кнопку отправить из группы допустим "123" в который 5 пользователей, выбирался рандомно 1 пользователь и ему отправлялась эта форма в ЛС. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.