..Door simpelweg htmlentities(); of htmlspecialchars(); toe te voegen.
Denk je nou echt dat je hier iemand mee in de problemen komt, Stanieboy?
Denk je nou echt dat je hier iemand mee in de problemen komt, Stanieboy?
Stanieboy schreef:Tussen je variable.Waar moet ik die htmlentities(); plaatsen, ik heb het nog nooit ergens geplaatst...

<script>alert("LOOOL");</script> 
!!Shahiem schreef:Wat bedoel je daar mee?Tussen je variable.Eerdere citaten tonen
Stanieboy schreef:Waar moet ik die htmlentities(); plaatsen, ik heb het nog nooit ergens geplaatst...
Stanieboy schreef:Wat bedoel je daar mee?Eerdere citaten tonen
Shahiem schreef:Tussen je variable.Eerdere citaten tonen
Stanieboy schreef:Waar moet ik die htmlentities(); plaatsen, ik heb het nog nooit ergens geplaatst...

[COLOR= #0000BB]<?
$Query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `gastenboek` ORDER BY id DESC LIMIT 5"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Query[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #0000BB]$door[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/print"]print[/URL][COLOR= #DD0000] [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] - [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] | [/COLOR][COLOR= #007700];
}[/COLOR]
?> [COLOR= #0000BB]<?
$Query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `gastenboek` ORDER BY id DESC LIMIT 5"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Query[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] - [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] | [/COLOR][COLOR= #007700];
}[/COLOR]
?> Stanieboy schreef:Dit heb ik nu:Ik heb nu echo etc,
[COLOR= #0000BB]<?
$Query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `gastenboek` ORDER BY id DESC LIMIT 5"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Query[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000] - [/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$headinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000] | [/COLOR][COLOR= #007700];
}[/COLOR]
?> Kyron schreef:ik ben ook 11.. maar ik weet toch ook gewoon wat het betekend?2. Hij is 11 jaar
Sebastiaanh schreef:Hij weet niet waar hij het moet plaatsen, maar wel wat een variabele is. Daar was mijn reactie op bedoeld, niet op jou.ik ben ook 11.. maar ik weet toch ook gewoon wat het betekend?Eerdere citaten tonen
Kyron schreef:2. Hij is 11 jaar
Kyron schreef:Dat weet ik..Hij weet niet waar hij het moet plaatsen, maar wel wat een variabele is. Daar was mijn reactie op bedoeld, niet op jou.Eerdere citaten tonen
Sebastiaanh schreef:ik ben ook 11.. maar ik weet toch ook gewoon wat het betekend?Eerdere citaten tonen
Kyron schreef:2. Hij is 11 jaar