tamumech Posted June 25, 2007 Share Posted June 25, 2007 Hello all, I'm still kind of new to php so bear with me. What I'm trying to do is combine two strings within the $_POST superglobal. I would like to add the variable '$id' and and a string of characters like 'GDP' in $_POST. If $id = 3, then the outcome should be $_POST[3GDP]. This value would then be inserted into MySQL. I don't know if this is at all possible... any help is appreciated! Quote Link to comment Share on other sites More sharing options...
teng84 Posted June 25, 2007 Share Posted June 25, 2007 $_POST[3GDP]??? i think that question is wrong maybe you mean the value with post and id will combine then that should be this way $sample=$_POST[your post initialization here ]."".$id; Quote Link to comment Share on other sites More sharing options...
tamumech Posted June 25, 2007 Author Share Posted June 25, 2007 oh damn, ok nevermind I got it. thanks for your help teng84 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.