thar Posted September 7, 2011 Share Posted September 7, 2011 Hello people I really need some help here. What to do when the array keys must not be arrays? The value from the input field must be the value of the array product. Hope here from someone soon. //Thar [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/246635-help-to-array/ Share on other sites More sharing options...
thar Posted September 7, 2011 Author Share Posted September 7, 2011 Hello people I really need some help here. What to do when the array keys must not be arrays? The value from the input field must be the value of the array product. Hope to hear from someone soon. //Thar Quote Link to comment https://forums.phpfreaks.com/topic/246635-help-to-array/#findComment-1266465 Share on other sites More sharing options...
codefossa Posted September 7, 2011 Share Posted September 7, 2011 I don't really understand what you're asking. You want something like this? $array['product_name'] = 'value'; Quote Link to comment https://forums.phpfreaks.com/topic/246635-help-to-array/#findComment-1266467 Share on other sites More sharing options...
thar Posted September 7, 2011 Author Share Posted September 7, 2011 I don't really understand what you're asking. You want something like this? $array['product_name'] = 'value'; Okay this is what i want Array ( [cola] => "here go's the value from input field ex. 12" [fanta] => "here go's the value from input field ex. 12" ) //thar Quote Link to comment https://forums.phpfreaks.com/topic/246635-help-to-array/#findComment-1266472 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.