Ik ben bezig om een website met TINYMCE te fabriceren, nu is dit toch wel een beetje een gedoe maar tot nu toe ben ik geloof ik als erg ver. Dit is de code van de HTML pagina met het form van TINYMCE erop:

<html>
<head>
<title>Graphalicious - Webdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
.style1 {font-size: 12px}
a:link {
	color: #ACBD0D;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #ACBD0D;
}
a:hover {
	text-decoration: none;
	color: #FFA200;
}
a:active {
	text-decoration: none;
	color: #ACBD0D;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (website108AFMAKEN.psd) -->
<table width="760" height="770" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
  <tr>
    <td colspan="2"><img src="images/website108AFMAKEN_01.png" alt="" width="760" height="319" border="0"></td>
  </tr>
  <tr>
    <td width="227"><img src="images/website108AFMAKEN_02.png" alt="" width="227" height="451" border="0" usemap="#Map"></td>
    <td width="533" background="images/website108AFMAKEN_03.png"><div align="center">
      <p>$content&nbsp;</p>
      </div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="19,91,145,114" href="index.html" target="_self">
  <area shape="rect" coords="22,132,146,154" href="portfolio.html" target="_self">
  <area shape="rect" coords="21,172,145,193" href="faq.html" target="_self">
  <area shape="rect" coords="21,212,145,232" href="offerte.html" target="_self">
  <area shape="rect" coords="19,251,144,273" href="contact.html" target="_self">
</map>
</body>
</html>

en dit de code het bestand waar de submit button naar verwijst:

<?php
/* Gathering Data Variables */

	$content = $_POST['content'];
	
html>
head
<title>Graphalicious - Webdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
.style1 {font-size: 12px}
a:link {
	color: #ACBD0D;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #ACBD0D;
}
a:hover {
	text-decoration: none;
	color: #FFA200;
}
a:active {
	text-decoration: none;
	color: #ACBD0D;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (website108AFMAKEN.psd) -->
<table width="760" height="770" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
  <tr>
    <td colspan="2"><img src="images/website108AFMAKEN_01.png" alt="" width="760" height="319" border="0"></td>
  </tr>
  <tr>
    <td width="227"><img src="images/website108AFMAKEN_02.png" alt="" width="227" height="451" border="0" usemap="#Map"></td>
    <td width="533" background="images/website108AFMAKEN_03.png"><div align="center">
      <p>$content&nbsp;</p>
      </div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="19,91,145,114" href="index.html" target="_self">
  <area shape="rect" coords="22,132,146,154" href="portfolio.html" target="_self">
  <area shape="rect" coords="21,172,145,193" href="faq.html" target="_self">
  <area shape="rect" coords="21,212,145,232" href="offerte.html" target="_self">
  <area shape="rect" coords="19,251,144,273" href="contact.html" target="_self">
</map>
</body>
</html>
	
/* Results rendered as HTML */

	$theResults = <<<EOD
<html>
<head>
<title>Graphalicious - Webdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
.style1 {font-size: 12px}
a:link {
	color: #ACBD0D;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #ACBD0D;
}
a:hover {
	text-decoration: none;
	color: #FFA200;
}
a:active {
	text-decoration: none;
	color: #ACBD0D;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (website108AFMAKEN.psd) -->
<table width="760" height="770" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
  <tr>
    <td colspan="2"><img src="images/website108AFMAKEN_01.png" alt="" width="760" height="319" border="0"></td>
  </tr>
  <tr>
    <td width="227"><img src="images/website108AFMAKEN_02.png" alt="" width="227" height="451" border="0" usemap="#Map"></td>
    <td width="533" background="images/website108AFMAKEN_03.png"><div align="center">
      <p>$content&nbsp;</p>
      </div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="19,91,145,114" href="index.html" target="_self">
  <area shape="rect" coords="22,132,146,154" href="portfolio.html" target="_self">
  <area shape="rect" coords="21,172,145,193" href="faq.html" target="_self">
  <area shape="rect" coords="21,212,145,232" href="offerte.html" target="_self">
  <area shape="rect" coords="19,251,144,273" href="contact.html" target="_self">
</map>
</body>
</html>
EOD;
echo "$theResults";
?>


ik heb hem al hiermee gecheckt: http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/
maar die zei alleen maar:
onverwacht teken > op regel 6, en na het verwijderen van dat teken zei hij dat het op de volgende regel zich voordeed. Hier wordt ik dus ook niet echt wijzer van. Iemand een idee wat er mis is met de code?
Je moet je HTML uit de PHP halen. En <html> en <head> weer fixen ;) (< en > terugzetten).
moet ik alle html code eruit halen? hoe moet het dan met echo?
Nee, gewoon buiten de PHP-tags.
ik heb al in de scriptsdatabank een script gevonden (Simpel 'CMS' dmv TinyMCE)

Reageren