TINYMCE code fout?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<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 </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>
<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 </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:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?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 </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 </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";
?>
/* 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 </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 </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.
Gewijzigd op 01/01/1970 01:00:00 door Hidde van Koningsveld