SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot Freelander's Avatar
    Join Date
    Dec 2004
    Location
    Arizona
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Keeping some info.

    I am designing a Poker game. I have been able to get it so that it shows up as "Nine" instead of "9". But i want it to be able to throw 1 card at a time. and at the same time pick one up.
    This is where it is at currently:
    http://fillamans.com/Freelander/client/5draw.php
    I still need to add a lot of things. But i think i need to get it so that it can throw cards down before i can do much of any other things to it.

    <? echo "First Card: " . $plot1 . " - Suit: " . $suitt1; ?> - <a href="5draw.php" onClick="action =$throwcard1">Throw Card</a><br>
    <? echo "Second Card: " . $plot2 . " - Suit: " . $suitt2; ?> - <a href="5draw.php" onClick="action =$throwcard2">Throw Card</a><br>
    <? echo "Third Card: " . $plot3 . " - Suit: " . $suitt3; ?> - <a href="5draw.php" onClick="action =$throwcard3">Throw Card</a><br>
    <? echo "Forth Card: " . $plot4 . " - Suit: " . $suitt4; ?> - <a href="5draw.php" onClick="action =$throwcard4">Throw Card</a><br>
    <? echo "Fifth Card: " . $plot5 . " - Suit: " . $suitt5; ?> - <a href="5draw.php" onClick="action =$throwcard5">Throw Card</a><br>

    <hr><? echo $game; ?><hr><center><font size="+3"><a href="5draw.php" onClick="$deal">Deal</a></font></center>

    Thank You,

  2. #2
    SitePoint Wizard mark_W's Avatar
    Join Date
    Mar 2004
    Location
    West Midlands, United Kingdom
    Posts
    2,631
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Freelander.

    I think what you are trying to do may be best achieved using sessions.

    So, each time you throw a crad it stores the values in a session.

    Mark


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •