|
|
Text Based Online Game | ||
Discussion by zolacat999 with 5 Replies.
Last Update: April 7, 2010, 2:08 pm | |||
![]() |
|
|
CODE
<html><head>
</head>
<body>
<form action="?" method="post">
Command:
<input type="text" name="command2">
<?php
if(isset($_SESSION['command2']) {
echo '
<input type="hidden" name="command3" value=".$_SESSION['command2'].">
';
} else if(isset($_SESSION['command3']) {
echo '
<input type="hidden" name="command4" value=".$_SESSION['command3'].">
';
}
?>
<input type="hidden" name="go" value="1">
<input type="submit">
<?php
if($_POST['go'] == 1) {
// begin game
echo $_SESSION['command4'];
echo $_SESSION['command3'];
echo $_SESSION['command2'];
//put game here
$_SESSION['command3'] == $_SESSION['command2'];
$_SESSION['command4'] == $_SESSION['command3'];
}
?>
</form>
</body>
</html>
Hope that helped!
Hannah
-PinderThe
QUOTE (pinderthe)
Just PHP no, but that is key for it though html very basic and mysql maybe some css skills will come in veery handy.Link: view Post: 145979
So basically everything I just said
Similar Topics:
Which Is The Best Squad Based Game?
New Text Based Game Maker
Help With Making A Textbased Game
Online Gaming (0)
|
(0) Need To Outsource Online Game Development Cartoon style educational games
|
HOME 





Mafia1900 oficial trailer
Avalon-rpg Avalon First Age - Text Based Game RPG

