Código PHP:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- STEP 1: Editor Localization: Include language file -->
<script language=JavaScript src='../scripts/language/spanish/editor_lang.js'></script>
<?
//Check user's Browser
if(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE"))
echo "<script language=JavaScript src='../scripts/editor.js'></script>";
else
echo "<script language=JavaScript src='../scripts/moz/editor.js'></script>";
?>
<script>
function submitForm()
{
document.forms.Form1.elements.inpContent.value = oEdit1.getHTMLBody();
document.forms.Form1.submit()
}
</script>
</head>
<body>
<pre id="idTemporary" name="idTemporary" style="display:none">
<?
if(isset($_POST["inpContent"]))
{
$sContent=stripslashes($_POST['inpContent']);//remove slashes (/)
echo htmlentities($sContent);
}
?>
</pre>
<form method="post" action="" id="Form1">
<script>
var oEdit1 = new InnovaEditor("oEdit1");
//STEP 2: Asset Manager Localization: Add querystring lang=english/danish/dutch...
oEdit1.cmdAssetManager="modalDialogShow('/Editor/assetmanager/assetmanager.php?lang=spanish',640,465)";//Use "relative to root" path
oEdit1.btnFlash=true;//Show 'Insert Flash' button
oEdit1.btnMedia=true;//Show 'Insert Media' button
oEdit1.RENDER(document.getElementById("idTemporary").innerHTML);
</script>
<input type="hidden" name="inpContent" id="inpContent">
</form>
<input type="button" value=" SUBMIT " onclick="submitForm()">
<br><br>
<?
if(isset($_POST["inpContent"]))
{
$sContent=stripslashes($_POST['inpContent']);//remove slashes (/)
$c11 = $sContent;
echo $c11;
}
?>
</body>
</html>
<font color=#ff0000>Hola</font>
Me gustaria guardarlo en la base de datos una para mostrar e igual que esta pero si tengo que ponerlo en un tablon de anuncios no podría poner con colores, tamaños de letra etc, ya que todos los tamaños serían igual.
Como sacar otra variable pero solo con Hola ? sin incluir html?
Gracias.