I am new to js ext and PHP. Would you please post you PHP code as well?

Thanks