in reply to its click both button will be execute?

Please edit this to use <code>Some code</code> tags around your code. Then we will be able to read it without getting headaches. It does look like you have tried as I can see a <code> tag at the start of your post. But something is not right.

Update

I do suspect these two lines may be related to your trouble.

$wb[0] = ...; $wb2 = ...;

I would also add use strict; use warnings; and follow the recomendations it spits out at you.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!