Jou manier moet je elke keer toepassen..
Die van mij zet je neer en hij filtert alles over de hele pagina ;p
Die van mij zet je neer en hij filtert alles over de hele pagina ;p
Robbert schreef:$naam hoort volgensmij binnen de function te staan.hij weergeeft Bas niet?Eerdere citaten tonen
Smiegles schreef:[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]inc/config.php[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Bas[/COLOR] [COLOR= #007700]function[/COLOR] handler[COLOR= #007700]([/COLOR][COLOR= #0000BB]$str[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$str[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]%gebruikersnaam%[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]handler[/COLOR][COLOR= #007700]);[/COLOR] ?> hier het hele script met hoi %gebruikersnaam%! [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/ob_end_flush"]ob_end_flush[/URL][COLOR= #007700]();[/COLOR] ?>
hier het hele script met hoi !
staat er dan
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]inc/config.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Bas[/COLOR]
[COLOR= #007700]function[/COLOR] handler[COLOR= #007700]([/COLOR][COLOR= #0000BB]$str[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$str[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]%gebruikersnaam%[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]handler[/COLOR][COLOR= #007700]);[/COLOR]
?>
hier het hele script met
hoi %gebruikersnaam%!
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ob_end_flush"]ob_end_flush[/URL][COLOR= #007700]();[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] handler[COLOR= #007700]([/COLOR][COLOR= #0000BB]$str[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR]gebruikersnaam[COLOR= #007700]].[/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$str[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]%gebruikersnaam%[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$str[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]handler[/COLOR][COLOR= #007700]);[/COLOR]
?>
hoi %gebruikersnaam%!
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ob_end_flush"]ob_end_flush[/URL][COLOR= #007700]();[/COLOR]
?> 

Mybot schreef:Dat heeft er totaal niks mee te maken.Of je maakt bijv 2 .php bestandjes bij de ene schrijf je
$naam = "Hoooooi jouwnaam";
?>
En bij de andere include je die php pagina en doe je
