veggio at mac.com
Fri Mar 18 13:37:51 CST 2005
I'm trying to load a file from a server by constructing an url which
has a variable as part of the string. When I remove the variable code
and use just a straight url everything works fine, the file on the
server is found and loaded:
get url "http://www.domain.com/view/xml/name/5" <<< this works!!
However, when I try to insert a variable into the url string the file
still loads from the server but the variable was not correctly passed
onto the server--- resulting in the wrong page being sent back.
put "5" into user
get url "http://www.domain.com/view/xml/name/&user&" <<< this doesn't
Klaus' suggestion didn't work either:
get url("http://www.domain.com/view/xml/name/" & user) <<< this
doesn't work either
I'm confident other parts of this, such as the server, etc are setup
properly because if I simply put a "5" in the url I get the correct
I hope this is enough information.
On 18-Mar-05, at 11:27 AM, Frank D. Engel, Jr. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> What do you mean it "doesn't work"? Do you get an error message, or
> do you expect something to happen that doesn't...
> If you could be more specific about what you are trying to do, we
> could probably help you more effectively.
> On Mar 18, 2005, at 1:50 PM, Varen Swaab wrote:
>> Thanks for the idea but this doesn't work either. There is something
>> about this syntax that isn't right. Do you have another idea?
>> On 18-Mar-05, at 1:57 AM, Klaus Major wrote:
>>> Hi Varen,
>>>> Hi all,
>>>> I'm new at this so please go easy...
>>>> I'm trying to put a global variable into a url string and I'm not
>>>> getting it to work. I think my syntax is messed up. The variable is
>>>> set properly. The variable is named "user" and has a value of "3".
>>>> get url "http://www.domain.com/view/xml/name/&user&"
>>>> Does anyone have any suggestions on how to write this?
>>> maybe you mean this:
>>> get url("http://www.domain.com/view/xml/name/" & user)
>>> You have to "build" the appropriate string first...
>>>> Thanks very much
>>> Klaus Major
>>> klaus at major-k.de
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
> - -----------------------------------------------------------
> Frank D. Engel, Jr. <fde101 at fjrhome.net>
> $ ln -s /usr/share/kjvbible /usr/manual
> $ true | cat /usr/manual | grep "John 3:16"
> John 3:16 For God so loved the world, that he gave his only begotten
> Son, that whosoever believeth in him should not perish, but have
> everlasting life.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> -----END PGP SIGNATURE-----
> $0 Web Hosting with up to 120MB web space, 1000 MB Transfer
> 10 Personalized POP and Web E-mail Accounts, and much more.
> Signup at www.doteasy.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode