My issue is that I want to pass som php-variables to HTML input.
echo $ManuellTagnavnMain;
for ($n = 0; $n < 6; $n++) {
print_r(++$ManuellTagnavnMain.PHP_EOL);
}
I would like to pass all of the values to HTML input(s). How is this done?
My issue is that I want to pass som php-variables to HTML input.
echo $ManuellTagnavnMain;
for ($n = 0; $n < 6; $n++) {
print_r(++$ManuellTagnavnMain.PHP_EOL);
}
I would like to pass all of the values to HTML input(s). How is this done?
<?php
echo $ManuellTagnavnMain;
for ($n = 0; $n < 6; $n++) { ?>
Input: <input type="text" value="<?php echo $n; ?>"/>
<?php
print_r(++$ManuellTagnavnMain.PHP_EOL);
}
?>
You can set Php values into html elements like this