I dont quite get what u are looking for.. u want php to replace ur html on user input?