Hello,
Tried again to find corrective solution for this with no luck....
I have category names in table with space in name, like "Danny the dog"
Query results in option rows displays those correctly. But when selected and posted it to next div with echoing it, it displays only the first letters like "Danny".
The code goes like this:
$cat = mysqli_query($db,"SELECT * FROM $categorytable ORDER BY catname ASC");
while($row = mysqli_fetch_array($cat)) {
$catname=$row['catname'];
echo'<option value="'.$catname.'">'.$catname.'</option>'; }
echo'</select></form></div></div>'; }
if(isset($POST['category'])) {
$category=$POST['category'];
echo'<div class="centerpage">
<label class="plan" style="float:left; width:auto; height:auto; margin:auto; font-size:3em;">'.$category.'</label>
So, in that label, after value has posted, '.$category.' displays only "Danny".
Tried already all combinations of double-quotes and htmlspecialchars....
Something wrong in post-phase,because it echoes correctly in option tag? Have to post it somekind of other way?