Search Tutorials
Your Flash movie is essentially going to act as a web browser, in that it will get information from a CGI script in the same method that a web page would get a result from a CGI script. For instance, if a user fills out a form and a CGI script process the user's response, the CGI might display a confirmation message that the user's response has been received. This info is passed in the Header of the file and is essentially a string of name/value pairs separated by ampersands (&). This type of string may look something like: name=eslacker&email=eslacker@yahoo.com But wait. It ain't quite that simple. You might have noticed that there are ASCII symbols in the above string. Well, these symbols need to be converted (URL-Encoded, i.e. broken into values that browsers and servers can interpret, regardless of platform) to Hexidecimal values escaped by a percent sign (%). Don't worry. It sounds more complicated than it is. Here's a valid URL-Encoded string: name=eslacker&email=eslacker%40yahoo%2Ecom In this case %40 represents the @ symbol, and %2E represents a period. For a table of the corresponding hexidecimal values of extended ASCII characters, check out www.cis.udel.edu/~totten/ascii/. You'll just need to prepend each value with a %. Having said all of that, here's some good news for you ASPers out there: "Forget what I just said." In ASP, you can use the Server.URLEncode() function to convert a regular string to a URLEncoded string. For those of you using PHP, I *think* there's a similar function, but I haven't messed with it at all. Check out PHP.net or PHPBuilder.com for more info.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|