Solution mallen Posted October 25, 2017 Author Solution Share Posted October 25, 2017 (edited) I think I finally got it working. Thanks again for helping me through this. I have learned more about arrays than I ever have. <input type="hidden" name="ords[]" <?php if($editProduct) echo "value='{$cat['p_order']}'"; ?>/> --------------------------------------------- $ords = $_REQUEST['ords']; $catCategory = "INSERT INTO category_assoc (prod_id, cat_id, p_order) VALUES('$lastID', '". $cats[$i] . "','". $ords[$i] . "')"; --------------------------------------------- I think the quote marks were an issue. Also these two parts. $ords[$i] name="ords[]" Edited October 25, 2017 by mallen Quote Link to comment https://forums.phpfreaks.com/topic/305375-storing-array-values-from-form/page/2/#findComment-1553019 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.