html - How to build <input> setting value attribute with php code -
I'm not sure how my question is, so I can do even with success Trying (simplified code)
I want the end result on the page:
I have a function to make it but the value is rendering as a string instead of the attribute code ... and I end up in the form of a string value. I do not understand why
how do I call the function:
$ newItem = SetItemInputTag ("color", $ itemcount, "
function:
function SetItemInputTag ($ TagId, $ ItemCount, $ TagValue, $ disabled) {$ InputTag = "& lt; Input type = 'text' class = 'form-control' id = ''. $ Tag id "'name =' inputname" $ itemcount "" disabled value = '". $ TagValue "'& gt;"; Return $ INputTag; }
I appreciate any help that I can get!
I think you need to use it a lot.
$ newItem = SetItemInputTag ("color", $ itemcount, $ input name 7, wrong);
instead of this row
$ newItem = SetItemInputTag ("Color", $ ItemCount, "
That's because you are already in php, why do not you use the script, call in your code in your code. Delete it and try it. / P>
Comments
Post a Comment