Passing variable data between php pages
Posted: Sun Feb 08, 2009 12:02 am
I have 1 php page that when a user clicks an image it opens a new php page and passes a variable to the new page. The Problem Im having is that the variable is not getting passed.
Heres the code...
I am tagging the image with "value = '".$gCreatorArray[$tCnt]."' but I dont understand why this isnt working, I even tried replacing the variable with 'woohoo' just to see if it would pass an actual string, but that didnt work either.
Any help would be greatly appreciated!!
Heres the code...
Code: Select all
$gCreatorArray[$tCnt] = $gCreator;
echo "<div style='Z-INDEX: 101; LEFT: 265px; WIDTH: 800px; POSITION: absolute; TOP: ".$tMarg2."px; HEIGHT: 20px'>";
echo "<form name='myform' action='http://localhost:8060/NWTTT/NWTTTClient2.php' method='POST'>";
echo "<input type='image' src='images/InvsBar500x20Red.png' name='image' value='".$gCreatorArray[$tCnt]."' width='500' height='20'>";
echo "GameCreator: ".$gCreatorArray[$tCnt];
echo "</form>";
echo "</div>";
Any help would be greatly appreciated!!