Hi,
what's wrong in my following script? this part runs after clicking on a submit button to load a file. This part displays 2 buttons "Yes" and "NO" but it continues to run the next lines after this part. This part does not ask me to choose Yes or No to be able to delete the loaded file.
thansk a lot
=============
if (! $query->param('button')) {
print $query->p(Do you want delete this file?');
print $query->start_form();
print $query->submit(-name => 'button', value='yes',-label => 'Yes');
print ' ';
print $query->submit(-name => 'button', value='no',-label => 'No');
print $query->endform;
} elsif ($query->param('button') eq 'no') {
return;
}
what's wrong in my following script? this part runs after clicking on a submit button to load a file. This part displays 2 buttons "Yes" and "NO" but it continues to run the next lines after this part. This part does not ask me to choose Yes or No to be able to delete the loaded file.
thansk a lot
=============
if (! $query->param('button')) {
print $query->p(Do you want delete this file?');
print $query->start_form();
print $query->submit(-name => 'button', value='yes',-label => 'Yes');
print ' ';
print $query->submit(-name => 'button', value='no',-label => 'No');
print $query->endform;
} elsif ($query->param('button') eq 'no') {
return;
}