Dat heb ik gedaan xD
Hij moet zijn variable gewoon beveiligen met htmlentities
Hij moet zijn variable gewoon beveiligen met htmlentities
Shahiem schreef:Hij moet zijn variable gewoon beveiligen met htmlentitiesDat heb ik gedaan xD


Afbeelding niet beschikbaarDe bron kon niet worden geladen (One2xs).Bron openen ↗
Afbeelding niet beschikbaarDe bron kon niet worden geladen (One2xs).Bron openen ↗
[COLOR= #0000BB]<?php
$text[/COLOR] [COLOR= #007700]=[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
[COLOR= #DD0000]"<img border=0 src=http://habbozilla.nl/images/banners/habbo_1.PNG width=620 height=122>"[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"<img border=0 src=http://habbozilla.nl/images/banners/habbo_2.PNG width=620 height=122>"[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"<img border=0 src=http://habbozilla.nl/images/banners/habbo_3.PNG width=620 height=122>"[/COLOR]
[COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$random[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$random[/COLOR][COLOR= #007700]];[/COLOR]
?> 


waarom dan
?if(isset($_GET[delete])){
mysql_query("DELETE FROM linkpartners WHERE ID = ".$_GET[delete]);
}else{
?>
<h2>linkpartner toevoegen</h2>
<form method="post">
wat is de website van de linkpartner<br />
<INPUT TYPE="text" NAME="link" VALUE="" /><br />
wat is de naam van de Website<br />
<INPUT TYPE="text" NAME="naam" VALUE="" /><br />
wat is de info van de Website<br />
<INPUT TYPE="text" NAME="info" VALUE="" /><br />
<INPUT TYPE="submit" NAME="submit" /><br />
</FORM>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO linkpartners (id, link, naam, info) VALUES (NULL, "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]link[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]" Succesvol linkpartner toegevoegd"[/COLOR][COLOR= #007700];
}
}[/COLOR]
?> 

