Hello Friends,
When i am trying to echo a string(having more than one word) which has space character into a text box, i am getting only the first word. I tried urlencode but i am getting + characted instead of space. As in php manual i tried urldecode for removing the + character. But that is not working.Please help me.
Thanks In Advance
With Regards
Santhanam
My Code:
<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
echo($pizza);
?>
<FORM METHOD=POST ACTION="test2.php">
<INPUT TYPE="text" NAME="txt" SIZE=50 VALUE=<?php echo(urlencode($pizza)); ?>>
<INPUT TYPE="submit" VALUE="Submit">
</FORM>
</BODY>
</HTML>