I have a change_username.php
which makes it possible for users to change their username. If they changed their username a page like "Your new username ist xxx" or "xxx is already used" will be displayed.
I don't want to use an echo
and put all the HTML stuff in there.
My first idea would be to create another 2 PHP's which then get the username from the change_username.php
and display a proper result with HTML.
Are there any alternatives / better ways to do that? Creating files for every result sucks as much as putting the HTML data in an echo
.