Hallo,
Waarom werkt dit niet?
Als ik op toevoegen klik, gebeurd er niks
Waarom werkt dit niet?
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/**
* @author Milan Drossaerts
* @mail milan50@wanadoo.nl
* @uses ONLY BY HTTP://WWW.MENATWAR.ONE2XS.COM/
* @rights License, ONLY USED BY HTTP://WWW.MENATWAR.ONE2XS.COM/
* @copyright 2009
*/[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<span style="color: blue; size: 4;">Tekst invoegen</span><br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//Allereerst andere functies, niet de url als eerste![/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][b][/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]<strong>[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][/b][/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]</strong>[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//Als alle functies zijn geweest de url functie:[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][url=[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]<a href="[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][/url][/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]</a>[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]][/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]">[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin (left,top,pageid,soort,tekst) VALUES (0,21,"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]",1,"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]") "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/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]<span style="color: green">Succesvol geuploaded naar jouw pagina!</span><br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="edit.php?id=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]">Klik hier om terug te gaan</a>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<input type="button" onclick="addubb([b], [/b]);" value="B" class="ubb-button" /> <input type="button" onclick="addubb([url=http://www.Google.nl]Google, [/url]);" value="Link" class="ubb-button" />
<center><br><form action="#" method="POST">
<textarea name="bericht" cols="40" rows="8" id="bericht"></textarea></center><br>
<input type="submit" name="submit" id="submit" value="Toevoegen" /></form><br><br><br>
<a href="#" class="lbAction" rel="deactivate">Sluit dit venster</a> Als ik op toevoegen klik, gebeurd er niks

Oja; UBB Parsen is beter om te doen bij het weergeven. Verder pars je ook niet zo slim.