Okay so I have this page where there is some prices and stuff. But at the end you can give a discount in the form of a percentage.
This percentage is then sent by POST to a new page. And here I need it to display something like "you have been giving a discount of 50%.
But if no discount is given and the percentage field is empty in the POST then it must not display the text.
Right now I got something like this
$procent .= $_POST['percent_discount'];
$text .= 'You have recived a discountf of';
$test = $text . $procent;
But this displays the text no matter what. Any idea on how to get it to only show the text and percentage if the percentage is sent in the POST?