Quote:
Originally Posted by vBNinja
Try TYPE_ARRAY
Also serialize $game before saving it to the db
|
I tried TYPE_ARRAY shortly after posting earlier and just get an error message on submit, no data is sent for that field. Could you please explain or point me in the right direction to "serialize $game" since I'm not familiar with this. I'm a novice when it comes to PHP and my vb experience is even more limited. I'm just trying to teach myself the basics by checking out other mods so any info is useful.
Quote:
Originally Posted by Dave
It's because you're sending an array of values to the server.
$vbulletin->input->clean_array_gpc('p', 'game', TYPE_STR);
$vbulletin->GPC['game']; should then contain the games separated by commas.
|
Yeah, I thought as much but have been unable to determine how to submit the array.
Thank you both for the replies.