php - How to fix odd value returned from select list populated by database -
Using PHP I'm populating a dropdown list with values taken from the MySQL database, the list looks fine, my The problem occurs when I try to recover the selected value. I am defining a variable and giving it a dropdown list name for the POST array:
$ variable = $ _POST ['dropdown list'];
But the contents of $ variable are \ {value} "
Why is it putting in {else}, and how can I get rid of them? Can I really use it to get?
If you are part of the price Curly brackets are getting that they are in their HTML code. The probability of your code is something that resembles '{$ value}'; instead of echoing "{$ Value}" or something like that.
Comments
Post a Comment