How can I pass the full game name fields[0] through POST in PHP?
<p>Currently, I get the full name when printing from the Fields array. But the post passed through the submit form only gets the first word of a game name into the POST array. The issue is in the first PHP code. The second is the page using the POST values.</p>

<pre><code>&lt;?php
require "myfun.php";
require "dbconnect.php";

# gets functions we will use
# call a method to output the document's page heading
  printDocHeading("Game.css", "Top RPG Games");
# now begin output of our html content
 print "&lt;body&gt;\n";
 print"&lt;div class='center'&gt; Clint's Game Ratings";
 print"&lt;/div&gt;";
 print"&lt;ul id='list-nav'&gt;";
 print"&lt;li&gt;&lt;a href='./RPG.php'&gt;RPG&lt;/a&gt;&lt;/li&gt;";
 print"&lt;li&gt;&lt;a href='./Shooter.php'&gt;Shooter&lt;/a&gt;&lt;/li&gt;";
 print"&lt;li&gt;&lt;a href='./Fighting.php'&gt;Fighting&lt;/a&gt;&lt;/li&gt;";
 print"&lt;li&gt;&lt;a href='./Racing.php'&gt;Racing&lt;/a&gt;&lt;/li&gt;";
 print"&lt;li&gt;&lt;a href='./Puzzle.php'&gt;Puzzle&lt;/a&gt;&lt;/li&gt;";
 print"&lt;/ul&gt;";
 print"&lt;div class='centersub'&gt; Top Ten RPG Games:";
 print"&lt;/div&gt;";
 print "&lt;div class ='contentarea'&gt;"; 
 print"&lt;br /&gt;";
 print"&lt;br /&gt;";
 topTenOverall();

#grabs the top ten games from the game database
function topTenOverall(){
$db= dbconnect();
$db-&gt;debug=false;
$db-&gt; Execute("use cyates");
#Gets the information for the top ten overall games
$query="SELECT Game.GameName, GameGenre, GameDescription, GameMode FROM Game LEFT OUTER JOIN GameScoreTotal ON Game.GameName=GameScoreTotal.GameName where Game.GameGenre = 'RPG' ORDER BY OverallScoreTotal DESC LIMIT 0, 10;";
$info=$db-&gt; Execute($query);
#iterates through game info from above querry placing info into the stats div
while (!$info-&gt;EOF) {
         $i++;
         $gameToRate=$info-&gt;fields[0];
         print'&lt;FORM METHOD="POST" ACTION="ratingForm2.php"style="width:210px; margin:2em 4em 4em 4em; padding:0;float: right;"&gt;';
         print'&lt;INPUT TYPE="submit" NAME="Rating" VALUE="Rate this Game" style="font-size: 2em;"height:5em; width:20em;"&gt;';
         print"&lt;input type='hidden' name='RatingID' value=$gameToRate &gt;";
         #print'&lt;$post_data['GameName'] = '$i.'. '.$info-&gt;fields[0]'&gt;';
         print"&lt;/FORM&gt;";
         print"&lt;div class ='stats'&gt; ";
         print"&lt;div class = 'statsTitle'&gt;";
         print $i.'. '.$info-&gt;fields[0];
         print"&lt;/div&gt;";
         print'&lt;br /&gt;&lt;br /&gt;';
         print' Genre: '.$info-&gt;fields[1].' , '.$info-&gt;fields[3];
         print'&lt;br /&gt;&lt;br /&gt;';
         print $info-&gt;fields[2];
         print"&lt;br /&gt;";
         print "&lt;/div&gt;";
         print"&lt;div class ='clear'&gt;";
         print"&lt;/div&gt;";
         print'&lt;br /&gt;';
         $info-&gt;MoveNext();
}
    }
    print"&lt;/div&gt;";
    printDocFooter();
?&gt;
</code></pre>
