Jump to content

[SOLVED] Putting an argument in $_POST[] ?


tamumech

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.