Hoi,
Ik ben bezig met iets waar ik me eigen websites op kan maken (een framwork). Nu loop ik tegen een probleem aan. Namelijk dit:
Als ik nu naar http://voorbeel.nl/test ga krijg ik die pagina te zien. Maar als ik nu een GET waarde mee wil sturen werkt dat niet. Bijvoorbeeld:
http://voorbeeld.nl/test?say=Hoi
De GET waarde word dus niet mee verstuurd naar de pagina de moet worden opgehaald. Hoe kan ik er voor zorgen dat de GET waarde WEL mee gaat?
toevoeging op 1 januari 2013, 15
14:
Of is dit een verkeerde manier om een frame-work te maken?
Ik ben bezig met iets waar ik me eigen websites op kan maken (een framwork). Nu loop ik tegen een probleem aan. Namelijk dit:
[COLOR= #0000BB]<?php
$allow[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]test[/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]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Templates/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000].php[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$allow[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Templates/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000].php[/COLOR][COLOR= #007700]);
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]403[/COLOR][COLOR= #007700];
}
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]404[/COLOR][COLOR= #007700];
}
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Templates/index.php[/COLOR][COLOR= #007700]);
}[/COLOR]
?> Als ik nu naar http://voorbeel.nl/test ga krijg ik die pagina te zien. Maar als ik nu een GET waarde mee wil sturen werkt dat niet. Bijvoorbeeld:
http://voorbeeld.nl/test?say=Hoi
De GET waarde word dus niet mee verstuurd naar de pagina de moet worden opgehaald. Hoe kan ik er voor zorgen dat de GET waarde WEL mee gaat?
toevoeging op 1 januari 2013, 15
14:Of is dit een verkeerde manier om een frame-work te maken?
43: