Jump to content

[SOLVED] doesnt print in html file


niknem

Recommended Posts

i dunno why this function doesnt work... it only prints the </br>

 

function buildMatrixInput($rows, $columns, $matrixNumber) {
for ($i = 1; $i <= $rows; $i++) {
	for ($j = 1; $j <= $colums; $j++) {
		$tabIndex = $j*$i+$j;
		echo ("<input name=\"m" . $matrixNumber . "_" . $i . $j . "\" type=\"number\" id=\"m" . $matrixNumber . "_" . $i . $j . "\" tabindex=\"" . $tabIndex . "\" size=\"3\" maxlength=\"2\" />");
	}
	echo "<br />\n";
}
}

Link to comment
https://forums.phpfreaks.com/topic/48309-solved-doesnt-print-in-html-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.