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! Link to comment https://forums.phpfreaks.com/topic/57037-solved-putting-an-argument-in-_post/ 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; Link to comment https://forums.phpfreaks.com/topic/57037-solved-putting-an-argument-in-_post/#findComment-281762 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 Link to comment https://forums.phpfreaks.com/topic/57037-solved-putting-an-argument-in-_post/#findComment-281775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.