[PHP] Missing characters
I need a helping hand to solve this Example Page1.php === $name_pro = "VC++ V2.4" print " href='page2.php?page=&value=$name_pro'> $name_pro "; === Page2.php === echo $value ; //Prints out VC V2.4 and I need VC++ V2.4 Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Missing characters
> Example > Page1.php > === > $name_pro = "VC++ V2.4" > print " $name_pro "; Use urlencode (http://php.net/urlencode): print " $name_pro "; Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Missing characters
Hi, Tuesday, February 7, 2006, 9:01:18 AM, you wrote: FA> I need a helping hand to solve this FA> Example FA> Page1.php FA> === FA> $name_pro = "VC++ V2.4" FA> print " href='page2.php?page=&value=$name_pro'> $name_pro "; FA> === FA> Page2.php FA> === FA> echo $value ; //Prints out VC V2.4 and I need VC++ V2.4 FA> Thanks in advance. You will need to use urlencode() on the $name_pro in the href tag. like: $name_pro = "VC++ V2.4" print " $name_pro "; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Missing characters [SOLVED]
Thanks to all.. Regards, FA. Brady Mitchell wrote: Example Page1.php === $name_pro = "VC++ V2.4" print " href='page2.php?page=&value=$name_pro'> $name_pro "; Use urlencode (http://php.net/urlencode): print " $name_pro "; Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Missing characters when processing scripts
I have a semi -random problem that characters in the php script are dropped. A very noticible instance is in a statement like: $query = "SELECT junk FROM table"; $result = mysql_query( $query, $handle) or die (mysql_error()); I get an error message from the die function like: "Error SELECT jnk FROM table... As you can see the error message has the SELECT statement with one character dropped (this is much more rare than single quotes or semicolons being dropped - but it definitely shows that the error isn't in the code). If I wait a minute and do a browser refresh, the error goes away and either there is another character dropped or it works. This problem was noticed in January a month after we upgraded PHP on our server to 4.3.10. Thanks in advance Charlene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Missing characters when processing scripts
On Thu, June 30, 2005 11:04 am, Charlene said: > I have a semi -random problem that characters in the php script are > dropped. A very noticible instance is in a statement like: > > $query = "SELECT junk FROM table"; > $result = mysql_query( $query, $handle) or die (mysql_error()); > > I get an error message from the die function like: > > "Error SELECT jnk FROM table... > > As you can see the error message has the SELECT statement with one > character dropped (this is much more rare than single quotes or > semicolons being dropped - but it definitely shows that the error isn't > in the code). > > If I wait a minute and do a browser refresh, the error goes away and > either there is another character dropped or it works. > > This problem was noticed in January a month after we upgraded PHP on our > server to 4.3.10. Another recent poster was having random characters converted to non-ASCII characters. SELECT j*nk FROM table where * is really a u with an umlaut, but I dunno how to get that out of my keyboard... It's possible that you have the same thing, but your software is not displaying non-ASCII characters. Even if it's not, I guess it could be related... Anyway, dig into his thread from a couple weeks back in case that got resolved... I'd also check http://bugs.php.net And maybe try going to 4.3.11 instead of .10, unless you have a very specific reason for not going there. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php