from prototype to php and html