Hi, first of all sorry for my English but I'm Italian 😑
I have to pass the data received from a form in a PDF file but I have a problem with the checkbox.
I want to write in the PDF file an empty square if the checkbox is unchecked and a square with checkmark if the checkbox is checked.
I post the code that i tried, I do not know what to write after "echo".
Can you help me please?
Thank you so much!
<?php if($_POST['sic_aziendale'] == "1") {
echo " ";
}else{
echo " ";
}?>
I have to pass the data received from a form in a PDF file but I have a problem with the checkbox.
I want to write in the PDF file an empty square if the checkbox is unchecked and a square with checkmark if the checkbox is checked.
I post the code that i tried, I do not know what to write after "echo".
Can you help me please?
Thank you so much!
<?php if($_POST['sic_aziendale'] == "1") {
echo " ";
}else{
echo " ";
}?>
Hi ictplanet,
It will depend on what fonts you have available in TCPDF - check to see if any of them have the characters you need (they aren't common in the standard windows fonts). If not you can probably add images to show what you need.
Bob
It will depend on what fonts you have available in TCPDF - check to see if any of them have the characters you need (they aren't common in the standard windows fonts). If not you can probably add images to show what you need.
Bob
Hi GreyHead and thank for your reply.
I' ve also tried to show an image but I received this error:
"TCPDF ERROR: [Image] Unable to get image:"
with this code:
<?php if($_POST['sic_aziendale'] == "1") {
echo "<img src=\"/image/square.jpg\" />";
}else{
echo "Ffff";
}?>
I' ve also tried to show an image but I received this error:
"TCPDF ERROR: [Image] Unable to get image:"
with this code:
<?php if($_POST['sic_aziendale'] == "1") {
echo "<img src=\"/image/square.jpg\" />";
}else{
echo "Ffff";
}?>
Hi GreyHead,
I'm also tried but I received the same error.
Help me please!!!
I'm also tried but I received the same error.
Help me please!!!
This topic is locked and no more replies can be posted.
