There are 2 problems I can't get around
1) I wanted to replace values created by a chechbox with some kind of meaningfull phrase like
A field can have only "Yes" and empty
I want something like "Yes, It's Ready" to be printed out instead
To do this I broke html_record subroutine with my own subroutine
It was something like this:
Code:
-----------------------------------
sub description_data {
if ($rec{'Ready'} ne "")
{print qq~
Yes, It's Ready~;
}
else { print qq~""~;}
}
End of Code________________________________
Instead of the desired result I've got my phrase printed in every record no matter if it's empty or not
Q: What's wrong with my sub and what to do?
2) I desided to have my output not as a separate table for each found record but as a separate row of the same table. Guess what - I got lost in the code. It works just fine for a simple output but when it comes to modifying and deleting it all crushes because there are checkboxes and radios inserted as separate rows.
Q: Does anyone have a sample of html.pl where this problem is solved.
2Alex: Wouldn't it be nice to have a collection of alternative html.pl somewhere on your site? =)
------------------
http://ariadna.hypermart.net
1) I wanted to replace values created by a chechbox with some kind of meaningfull phrase like
A field can have only "Yes" and empty
I want something like "Yes, It's Ready" to be printed out instead
To do this I broke html_record subroutine with my own subroutine
It was something like this:
Code:
-----------------------------------
sub description_data {
if ($rec{'Ready'} ne "")
{print qq~
Yes, It's Ready~;
}
else { print qq~""~;}
}
End of Code________________________________
Instead of the desired result I've got my phrase printed in every record no matter if it's empty or not
Q: What's wrong with my sub and what to do?
2) I desided to have my output not as a separate table for each found record but as a separate row of the same table. Guess what - I got lost in the code. It works just fine for a simple output but when it comes to modifying and deleting it all crushes because there are checkboxes and radios inserted as separate rows.
Q: Does anyone have a sample of html.pl where this problem is solved.
2Alex: Wouldn't it be nice to have a collection of alternative html.pl somewhere on your site? =)
------------------
http://ariadna.hypermart.net