Galera I put a file called php.php as follows:
<?php
$nome = "nome";
$idade = "25";
$peso = "78";
include "layout.html";
This file includes the layout.html file, which looks like this:
<table align="center" border="1">
<tr>
<td>
Nome
</td>
<td>
Idade
</td>
<td>
Peso
</td>
</tr>
<tr>
<td>
variavel
</td>
<td>
variavel
</td>
<td>
variavel
</td>
</tr>
</table>
Tomorrow is doubt. How to make php put in the variables inside the html, if I change the html to php.
Does anyone know of any way? I thought about creating a function that would change everything that counted %% inside the html by $. Example:
%% name %% would be exchanged for $ name.
Does anyone have a solution?