Example #1
0
function getAllTypes($numberOfTypes)
{
    $allTypes = array_merge(getTypeNames($numberOfTypes), array('R'));
    return implode(', ', $allTypes);
}
Example #2
0
}
?>

<center>
    <form action="cardcreator.php" method="post" enctype="multipart/form-data">
        <input type="text" size="50" name="cardname" placeholder="Card name"><br /><br />
        <input type="file" name="cardpicture"><br /><br />
        <input type="text" size="50" name="carddescription" placeholder="Card description"><br /><br />
        <input type="text" size="5" name="cardtop" placeholder="Top">
        <input type="text" size="5" name="cardright" placeholder="Right">
        <input type="text" size="5" name="cardbottom" placeholder="Bottom">
        <input type="text" size="5" name="cardleft" placeholder="Left"><br /><br />
        <select name="cardtype">
            <?php 
$types = getTypeIDs();
$typenames = getTypeNames();
echo '<option value="' . $types[$i] . '">Choose Type...</option>';
for ($i = 0; $i < sizeof($types); $i++) {
    echo '<option value="' . $types[$i] . '">' . $typenames[$i] . '</option>';
}
?>
        </select><br /><br />
        <select name="cardeffect">
            <?php 
$effects = getEffectIDs();
$effectnames = getEffectNames();
echo '<option value="' . $types[$i] . '">Choose Effect...</option>';
for ($i = 0; $i < sizeof($effects); $i++) {
    echo '<option value="' . $effects[$i] . '">' . $effectnames[$i] . '</option>';
}
?>