I'm not sure how word my question clearly, so here's what I'm trying to do with no success so far (simplified code)
The end result I need on the page is:
<input type="text" class="form-control" id="Colour" name="InputName7" value="<?php echo $InputName7 ; ?>">
I have a function to build this but the value attribute is rendering as a string instead of code... and I end up with "" as the string value. I don't understand why.
Here's how I call the function:
$newItem = SetItemInputTag("Colour", $ItemCount, "<?php echo $InputName7; ?>", FALSE)
Here's function:
function SetItemInputTag($TagId, $ItemCount, $TagValue, $Disabled){
$InputTag = "<input type='text' class='form-control' id='" . $TagId . "' name= 'InputName" . $ItemCount . "' disabled value='" . $TagValue . "'>";
return $InputTag;
}
I appreciate any help I can get!!