Jump to content

Transferring data to another page


cliftonbazaar

Recommended Posts

I have the following code

while($player = mysql_fetch_array($players)) { #Lets loop through all the players
echo "<BR><input type=submit onclick=this.form.action='points.php?points=".$_GET['points']."&player=".$player['playerID']."&playerName=".$player['name']."' value='".$player['name']."'>";
}

but the problem is that $player['name'] is always two words and it doesn't work.  So I have removed '&playerName=".$player['name']."' but now don't know how to transfer that info.

 

Is there a way of having the player name in the header or another way of sending this data to the next page?  Another way of doing it is to check for the players name via there playerID number but this involves another call to the database which I am trying to avoid.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.