Heat syrup and sugar, stirring continuously, until mixture comes to a boil.
Remove from heat; add peanut butter and stir until smooth.
Pour mixture over cornflakes in a large bowl.
Mix until cereal is thoroughly coated.
Spread in a buttered 9x13-inch pan and press down lightly with buttered hands.
When cool, cut into squares.
