|
-
How should a text file look in order to load multiple string variables (with spaces) using the POST method? Mine currently looks like:
newsheader=NOW SHIPPING!
newsitem=We're pleased to announce v4.2 is NOW SHIPPING.
The newsheader variable works, except that it also appends the next line containing the newsitem statement as part of the entire string inside newsheader.
With all these spaces and the length of the variables (yes, I will be using more in the same file) it's not nice to encode this as GET.
-
hi,
i am not sure, but i think in loadvariables "POST" or "GET" concerns the way data is sent to the server(script or servlet..).
so you have to do it this way:
newsheader=NOW SHIPPING!&newsitem=We're pleased to announce v4.2 is NOW SHIPPING.
peterchen
-
it works
thanks!
Sometimes you just need someone to say things outright. I was disappointed that I could not find such an exmaple in the Flash docs, but Flash Kit and the kind people like yourself (peterchen) have been more than helpful!
-
Spaces and other special characters need to be URL-encoded. Space = %20
I know, it's going to look mighty hairy.
-
Or maybe not, if you say that worked.
-
nope -- space are fine
I was getting confused by spaces before. I was thinking they needed to be URL encoded, but they don't.
peterchen's comment shows an example of how to do it properly... you'll see there are space characters in the variable's string value.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|