Tenho essa página pra cadastrar dados no site:
incluir_letra.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="pt-br">
<title>Incluir Letra</title>
</head>
<body>
<form name="incluir" method="post" action="adicionar_letra.php">
<p>Incluir letra<br>
Artista: <input type=text name=artista>
<br>
Álbum: <input type=text name=album>
<br>
Faixa: <input type=text name=faixa size="2">
<br>
<br>
Letra:
<br>
<textarea rows="10" name="letra" cols="50">
</textarea>
<br>
<br>
<input type="submit" value="Adicionar" name="ok">
<br>
<input type="reset" value="Limpar" name="reset">
</form>
</body>
</html>
E essa outra página que pega os dados:
adicionar_letra.php
<?php
$artista = $_POST['artista'];
$album = $_POST['album'];
$faixa = $_POST['faixa'];
$letra = $_POST['letra'];
echo 'Artista: ' . $artista;
echo '<br>';
echo 'Álbum: ' . $album;
echo '<br>';
echo 'Faixa: ' . $faixa;
echo '<br>';
echo 'Letra: <br>' . $letra;
?>
Tudo certo, mas quando tento preencher o formulário o php retorna assim:
Artista: U2
Álbum: Beautiful day
Faixa: 1
Letra:
The heart is a bloom Shoots up through the stony ground There\'s no room No space to rent in this town
Como eu faço pra tirar esse \ e converter as quebras de linhas do formulário?
Pra ficar assim:
Letra:
The heart is a bloom
Shoots up through the stony ground
There's no room
No space to rent in this town
Eu tb precisaria imprimir esses dados em páginas html estáticas (gravar as páginas no servidor) alguém tem um link de como fazer isso?
Pq eu ñ sei por qual termo procurar
Obrigado a todo mundo ae
