[FX.php List] Text String question
John Funk
jfunk at criticalsolution.com
Wed May 19 10:40:14 MDT 2010
I figured something like that. Thank you Steve
On 5/19/10 11:13 AM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:
> 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...
>
> Cheers
> Steve
>
>
> 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 <mailto:steve at matatirosolutions.co.uk>
> 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
> <http://www.ukyouth.org/> . You can still sponsor me here
> <http://www.justgiving.com/steveWinterLondon2010> .
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20100519/c978dabe/attachment.html
More information about the FX.php_List
mailing list