PHP Problem, Special String Character...please help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hai...

I have problem with manipulating the string...
How to send the string with special character
included to the other pages...

For example the string "Father & Son", when I send into
other page the display become "Father"
Example special characters are &, +, <, >, etc


How to fix it??? Thanks very much for your kind attention

Best Regards,
Ferry


PHP sample


file 1 : string_test.php

<html>
<?
$title="Father & Son";
echo "the real title : $title";
?>

<br>
<p><a href="string_display.php?stitle=<? echo $title;?>">next page</a></p>

</html>




file 2 : string_display.php


<html>
<?
echo "in this page<br>";
echo "the title : $stitle";
?>
<p>Could you fix this problem??</p>
<P>the title should be "Father & Son"<p>
<p>the problem is using the special character ( &, +, ", <, >, etc)</p>
<br>
<p><a href="string_test.php">back</a></p>

</html>

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux