"Virgil Green" <vjg@obsydian.com> wrote in message
news:%9ajc.2141$Wl5.1333@newssvr23.news.prodigy.co m...[color=blue]
> "Jeff" <jeffh@ariven.com> wrote in message
> news:s07jc.13972$2e6.2485@lakeread01...[color=green]
> > "Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
> > news:u6ep80tvde7l00ksrt284bopd5lsjf31ko@4ax.com...[color=darkred]
> > > I noticed that Message-ID: <4r2jc.13825$2e6.5228@lakeread01> from Jeff
> > > contained the following:
> > >
> > > >What I seek is an overall resolution to the code sniplet, though, I[/color][/color]
> think[color=green]
> > if[color=darkred]
> > > >I can find out from anyone here on how to fill in any spaces that may[/color]
> > exist[color=darkred]
> > > >in the $delivery_city_address variable with a %20, that would pretty[/color][/color]
> much[color=green][color=darkred]
> > > >resolve my issue?
> > >
> > > The implode isn't doing it.
> > >
> > >
http://uk.php.net/manual/en/function.urlencode.php
> > > --
> > > Geoff Berrow (put thecat out to email)
> > > It's only Usenet, no one dies.
> > > My opinions, not the committee's, mine.
> > > Simple RFDs
http://www.ckdog.co.uk/rfdmaker/[/color]
> >
> > Geoff,
> >
> > Thank you very much for your assistance. I am reading and trying to[/color]
> gather[color=green]
> > what I can using the link provided. While I am interested in learning[/color]
> PHP,[color=green]
> > Im affraid that I might not figure things out until some time has[/color][/color]
passed.[color=blue][color=green]
> >
> > If you or anyone else wouldn't mind rearranging/modifying the supplied[/color]
> code[color=green]
> > so that it will work in the case where the city (or any other variable[/color][/color]
for[color=blue][color=green]
> > that matter I suppose) has a space in it, I would be very much in your[/color]
> debt.[color=green]
> >
> > I'll be watching intently to see if someone who doesnt mind doing this[/color][/color]
for[color=blue][color=green]
> > me, makes the changes.
> >
> > I try to contribute where I can, unfortunately this is just one of those
> > NG's I cannot really contribute anything, but rather this is one that Im
> > visiting strictly as the collector vice contributor. :([/color]
>
> Untested:
>
> $html = implode ('', file
>[/color]
('http://wwwapps.ups.com/ctc/htmlTool?accept_UPS_license_agreement=yes&destR[color=blue]
>[/color]
esident=01&49_residential=1&10_action='.$ups_10_ac tion.'&13_product='.$ups_1[color=blue]
>[/color]
3_product.'&14_origCountry='.urlencode($ups_14_ori gCountry).'&origCity='.url[color=blue]
> encode($ups_origCity).
>[/color]
'&15_origPostal='.$ups_15_origPostal.'&22_destCoun try='.urlencode($ups_22_de[color=blue]
> stCountry).
>[/color]
'&shipDate='.date("Y-m-d").'&document='.$ups_document.'¤cy='.$ups_c urr[color=blue]
>[/color]
ency.'&container='.$ups_container.'&billToUPS='.$u ps_billToUPS.'&dropOffChoi[color=blue]
>[/color]
ce='.$ups_dropOffChoice.'&20_destCity='.url_encode ($delivery_city_address).'[color=blue]
> &19_destPost
>[/color]
al='.$delivery_zip.'&23_weight='.$myrow['weight'].'&24_value='.$value.'&25_l[color=blue]
>[/color]
ength='.$myrow['size_x'].'&26_width='.$myrow['size_y'].'&27_height='.$myrow[[color=blue]
> 'size_z']));
>
> - Virgil
>
>[/color]
Virgil,
This did the trick, thank you very much. A slight error where you have:
&20_destCity='.url_encode.....
vice
&20_destCity='.urlencode...
but, that was easy enough to pin point... it returned a completely blank
page with it as url_encode, which now Im intrigued as to why it does that
<shrug>
Thank you very much everyone. I know I wasn't the easiest to work with (as
ignorant of PHP as I am) so I appreciate the patience.
Jeff
PS - Nope, Im not gone forever. I plan to stick around to learn this PHP
jazz they call programming. ;)