I am trying to print a label and a textbox together in a HTML file that I am trying to write using fopen, fputs in PHP. For some reason the output is just a text box and not the label along with the textbox. This is the piece of code I am using.?
I have also tried for line 4 $var4.$var5 and "$var4"."$var5" with no success.
if($ele == 'txtbox')
{
$var5 = "<input type = 'text' name = 'lbl1'><br><br>";
$element2 = "$var4$var5";
echo $element2;
}