ik heb hier een stuk code , gegenereerd uit een PHP script.
deze code is gegenereerd uit een db, waarin een tabel staat met cd's (cd_id en cd_titel) .
nu is het gekke dat deze gegenereerde HTML een fout bevat, als ik een cd submit (dus uit de lijst een cd kies (elke cd is een form)) dan geeft hij een js foutmelding .. ik zie het niet.. ben al een tijd aan het zoeken ..
ziet iemand de fout ?
code:
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
| <html>
<body>
<style type="text/css">
<!--
.imgdiv {
overflow: auto;
scrollbar-base-color : scrollbar-base-color: #546376;
scrollbar-face-color : #7D8DA2;
scrollbar-shadow-color : #75839B;
scrollbar-arrow-color : white;
border: 1px solid #CCCCCC; cursor : hand;}
p { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal;
line-height: normal; font-weight: normal; font-variant: normal;
text-transform: none; color: #FFFFFF}
a { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #FFFFFF}
a.hover { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #FFFFFF}
body { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #FFFFFF; background-color: #006633}
td { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; }
select {
font-family: Arial, Helvetica, sans-serif;
font-size: 8px;
-->
</style>
<br />
<b>Notice</b>: Undefined index: sub in <b>d:\phpfiles\boei\tmp13ikjclq2r.php</b> on line <b>28</b><br />
<br />
<b>Notice</b>: Undefined index: check in <b>d:\phpfiles\boei\tmp13ikjclq2r.php</b> on line <b>29</b><br />
<br />
<b>Notice</b>: Undefined variable: submit in <b>d:\phpfiles\boei\tmp13ikjclq2r.php</b> on line <b>30</b><br />
<div id="text" class="imgdiv" style="overflow: auto; background-color: #006633; position:absolute; width:450px; height:117px; z-index:3; left: 10px; top: 10px; visibility: visible;"> <p>vink de cd('s) aan die u wilt bestellen.<br>Klik dan op "bestellen" om de bestelling verder op te sturen.<br><br>Klik op de cd voor meer informatie over de cd, zoals nummers,prijs etc.</p></div><div id="cdlijst" class="imgdiv" style="overflow: auto; background-color: #006633; position:absolute; width:250px; height:200px; z-index:3; left: 100px; top: 70px; visibility: visible;"> <table border=0 cellspacing=0 cellpadding=0 width="100%"><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="68" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=68></td><td><a href="javascript: document.68.submit();">nummer 4</a></td><td>68</td><input name="check" type="hidden" value="68"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="69" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=69></td><td><a href="javascript: document.69.submit();">nummer 4</a></td><td>69</td><input name="check" type="hidden" value="69"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="70" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=70></td><td><a href="javascript: document.70.submit();">gda </a></td><td>70</td><input name="check" type="hidden" value="70"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="71" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=71></td><td><a href="javascript: document.71.submit();">gasgds </a></td><td>71</td><input name="check" type="hidden" value="71"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="72" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=72></td><td><a href="javascript: document.72.submit();">Titel </a></td><td>72</td><input name="check" type="hidden" value="72"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="73" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=73></td><td><a href="javascript: document.73.submit();">Titelcd </a></td><td>73</td><input name="check" type="hidden" value="73"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="74" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=74></td><td><a href="javascript: document.74.submit();">itel </a></td><td>74</td><input name="check" type="hidden" value="74"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="75" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=75></td><td><a href="javascript: document.75.submit();">fgsa </a></td><td>75</td><input name="check" type="hidden" value="75"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="76" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=76></td><td><a href="javascript: document.76.submit();">joel's 3</a></td><td>76</td><input name="check" type="hidden" value="76"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="77" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=77></td><td><a href="javascript: document.77.submit();">Joel's 2</a></td><td>77</td><input name="check" type="hidden" value="77"><input name="sub" type="hidden" value="1"></form></tr><tr onmouseover="this.style.background='#7D8DA2';" onMouseOut="this.style.backgroundColor='#006633';" >
<form name="78" style="display:inline" METHOD="GET" ACTION="/boei/TMP13ikjclq2r.php";><td><input type=checkbox name=checkbox value=78></td><td><a href="javascript: document.78.submit();">Joël's 4</a></td><td>78</td><input name="check" type="hidden" value="78"><input name="sub" type="hidden" value="1"></form></tr>
</table>
</div>
<div id="basket" class="imgdiv" style="overflow: auto; position:absolute; width:150px; height:200px; z-index:2; left: 700px; top: 100px; visibility: visible;">
</div>
</form>
</body>
</html> |
deze code is gegenereerd uit een db, waarin een tabel staat met cd's (cd_id en cd_titel) .
nu is het gekke dat deze gegenereerde HTML een fout bevat, als ik een cd submit (dus uit de lijst een cd kies (elke cd is een form)) dan geeft hij een js foutmelding .. ik zie het niet.. ben al een tijd aan het zoeken ..
ziet iemand de fout ?