Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-08-2011, 11:55 PM   PM User | #1
crazykid
Regular Coder

 
Join Date: Feb 2010
Posts: 130
Thanks: 4
Thanked 0 Times in 0 Posts
crazykid is an unknown quantity at this point
Converting a link into a form input

So...my buddy who was the original creator of the game directory and game profile code on my 2 gaming sites (both sites use the same code...I just chose to abandon one and relaunch it with a new site) is now busy with other things and won't help me until January.

I told him about my coding problem....he suggested that I convert the <a href> code into a <form> input code. The form should turn the text link into a submit button (which I hope will look like text when modified in css) and the submit button will have the value of the game's name in the database and the button will input the gameId associated with the game's name.

The code I'm using now is this:

PHP Code:
<a href=http://www.rpgmax.com/mmo/gamedirectory/gameprofile/?gameId=" . $row['gameId'] . ">" . $row['gameName'] . "</a> 
And then I use a $gameId = $_GET['gameId']; GET code on the game profile page to fetch the gameId and attach it the the URL (I'm typing tat without actually copying and pasting the actual code).

Does anybody know hot to convert the above php a href code into form input form? The _GET code should then change to _POST to correspond to the form input code. Not sure though...
crazykid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:57 AM.


Advertisement
Log in to turn off these ads.