PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a dynamic dropdown list that passes the first item in the list, not the selected. I have tried so many things. I would greatly appreciate help. I have posted on serveral forums. here it the code:
I have tried passing $_POST['skuList'] everything I can think of and it still passes the first item. Again I thanking you in advance for help! I have been working on this for a LONG time and just can't see my error.
will always return 0 as you are comparing the same two strings. So, working with what you provided, $_GET['ProductNo'] will always return the SKU for the first record returned in the query. And $_POST['skuList'] will return whatever was selected in the pelldown. But the default selection will always be the first option (i.e., the first record).
Thank you so much! That bit of code was put in by Dreamweaver. I was thinking I had to put the value in a variabe to pass it. But I figured it out from what you explained. Again thanks so much. I was thinking off in left field. I need to keep it simple
Adding "PLEASE HELPPP" in your title is very poor netiquette. The good people of this community shall help you at their own leisure, so just have a little patience.
I've modified your title for you this time, but in the future try to keep your titles as descriptive as possible.