[FX.php List] Text String question

Steve Winter steve at bluecrocodile.co.nz
Wed May 19 10:13:56 MDT 2010

Hi John,

What's happening here is that the & is the 'break' between arguments in a URL, so it's being seen as a new argument starting at that point... for some browsers the presence of spaces may also cause an issue...

Take a look at urlencode() which will correctly translate the ampersand, spaces, and other nasties for you...


On 19 May 2010, at 16:50, John Funk wrote:

> I have a text string (A $ J Widgets) that has a <&> in  the FileMaker Field.
> When I pass this string as a http variable from one page to another, it
> clips it off.
> I am using this code on the first page:
> <meta http-equiv="REFRESH" content="1;url=tradenames.php?CompanyNumber=<?php
> echo $CompanyNumber; ?>&Pass=<?php echo $Pass; ?>&Company=<?php echo
> $Company; ?>&CompRecID=<?php echo $CompRecID; ?>"></HEAD>
> On the originating page <?php echo $Company; ?> holds the correct company
> name (A $ J Widgets)
> On the top of the next page (tradenames.php) I use:
> $Company=$_REQUEST['Company'];
> And it cuts off the string off at the <&> character.
> Any help?
> Thanks
> John Funk
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

Steve Winter
steve at bluecrocodile.co.nz
m: +44 77 7852 4776
3 Calshot Court, Channel Way
Ocean Village, Southampton SO14 3GR

I ran the London Marathon to raise money for UK Youth. You can still sponsor me here.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20100519/4a52af5c/attachment-0001.html

More information about the FX.php_List mailing list