I want to create a Jackpot game where the positive & negative numbers are randomly generated. I have written my code in Dreamweaver but I don't see the output of my PHP code. Instead of code I see the PHP symbol. I also want to know how to combine multiple functionalities in PHP. I want to create a table, store game credit, generate a random number etc. This is my current code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jackpot</title>
</head>
<body>
<?php include "header.php"; ?>
<table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr valign="top">
<td width="100%" height="59" align="left" valign="top"><table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr valign="top">
<td align="left" valign="top" bgcolor="#FFFFFF"><?php include "menu.php"; ?></td>
<td width="100%" align="left" valign="top"><p align="center">Jackpot</p></td>
</tr>
</table> <p align="center"> </p></td>
</tr>
</table>
<?php include "footer.php";?>
<?php
$random_number = rand(-1000,1000);
echo "<p> You struck a Jackpot of </p>";
echo $random_number;
?>
<form action="Jackpot.php" method="post">
fingerValue: <input type="text" name="fingerValue" />
<input type="submit" />
</form>
</body>
</html>