Will this form post in the same page at the bottom or will it overwrite the page, which is what I'm trying to avoid.
--- In [email protected], "Patrick Bierans" <[EMAIL PROTECTED]> wrote: > > > <FORM action="?secondM=poptry.php" method="post"> > > Nooooo. (Add more "o"'s for dramaturgic delay effects like in cliffhanger) > > <form action="index.php" method="post"> > <input type="hidden" name="secondM" value="poptry.php"> > > is a lot better! Don't mix $_POST and $_GET. > And if you have different pages/actions you might want to go with this > technique: > > <input type="submit" name="action[chat]" value="chat"> > > and in code you use: > <?php > if (iss_array($_REQUEST['action'])) > $action=current(array_keys($_REQUEST['action'])); > else > $action='default'; > > switch ($action) > { > case 'chat': > perform_action_chat($_REQUEST); > break; > case 'default': // next > default > perform_action_default($_REQUEST); > break; > } // case action > ?> > > If you use an array for $_REQUEST['action'] you do not have to use button > value and therefore you are able to code multilingual. > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
