Thanks for the help,

For some reason the code isn't printing the stuff in the case 
statements.

This is the code for the html
HTML:
<FORM  action="?secondM=poptry.php" method="post">

<INPUT type="submit" value="35:1" name="action[35:1]">
<INPUT type="submit" value="17:1" name="action[17:1]">
<INPUT type="submit" value="11:1" name="action[11:1]">
<INPUT type="submit" value="8:1" name="action[8:1]">
<INPUT type="submit" value="6:1" name="action[6:1]">
<INPUT type="submit" value="5:1" name="action[5:1]">
<INPUT type="submit" value="2:1" name="action[2:1]">
<INPUT type="submit" value="1:1" name="action[1:1]">

</FORM>

This is the code for the php
PHP:

if (iss_array($_REQUEST['action']))
        $action=current(array_keys($_REQUEST['action']));
else
        $action='default';
 
switch ($action)
{
        case '35:1':
                print "Testing";
                break;
        case '17:1':
                print "17:1";
                break;
        case '11:1':
                print "11:1";
                break;
        case '8:1':
                print "8:1";
                break;
        case '6:1':
                print "6:1";
                break;
        case '5:1':
                print "5:1";
                break;
        case '2:1':
                print "2:1";
                break;
        case '1:1':
                print "1:1";
                break;
        case 'default': // next
                print "DEFAULT";
                break;
} // case action


Also this is the code for the main page.
MAIN:

<html>
<body>
<center>
<table border=1 width=400 bgcolor="#FFCC99">
<tr>
<td ><?php include "sequence.html"; ?></td>
</tr>
<tr>
<td >
<?php if($secondM == "") {$secondM = "";} include "$secondM" ?></td>
</tr>
</table>
</center>
</body>
</html>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/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/
 


Reply via email to