You are here: sending param in _GET causes problems « PHP Programming Language « IT news, forums, messages
sending param in _GET causes problems

Posted by albert on 08/27/07 06:10

Hello,

I'm generating an image with the GD lib.
As I need to send parameters to the image, this is my code :

<?
$MyText = "this is my text" ;
?>

<img src="MyImg.php?text=<?=$MyText ?>" ... />

In this case, there is no pb. I get the param with $_GET['text'] properly
Still, if I send the following text : $MyText = "a + b" ;
I doesn't work anymore... I guess the character '+' is the trouble.
How to do it ? Is it possible to send params via _POST ? How ?

Thanks in advance,


albert

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация