transfering variable value... something funny here..
Posted: Thu Oct 13, 2011 2:33 pm
OK, if i do :
echo " <B>$desc<B>";
I have this as an answer ;
Baxter 3 poches de lait 2%
when i try to transfer the value of $desc into the variable NAME (for my cart)
Here is the code : echo " <input type=hidden name=\"NAME\" value= $desc > ";
I got this in the name variable : Baxter (only the first word)
if i get into the sql database and modify the description by removing (two) 2 blanks ...
Baxter3poches de lait 2%
I got this in the shopping cart :
Baxter3poches
why this command : echo " <input type=hidden name=\"NAME\" value= $desc > ";
is transfering only the first word of the description ?
thank guys.
echo " <B>$desc<B>";
I have this as an answer ;
Baxter 3 poches de lait 2%
when i try to transfer the value of $desc into the variable NAME (for my cart)
Here is the code : echo " <input type=hidden name=\"NAME\" value= $desc > ";
I got this in the name variable : Baxter (only the first word)
if i get into the sql database and modify the description by removing (two) 2 blanks ...
Baxter3poches de lait 2%
I got this in the shopping cart :
Baxter3poches
why this command : echo " <input type=hidden name=\"NAME\" value= $desc > ";
is transfering only the first word of the description ?
thank guys.