• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

GET VS. POST

When working with server-side scripts (as mentioned above), there are two ways to transfer data between the server and Flash: via GET or POST. These two ways of sending variables and their associated values are used in regular HTML pages and in Flash whenever data entered into a form is sent to a server to be processed. (We’ll discuss the specific methods Flash uses to send data in the following exercises.)

When you send variables using GET, you’re simply concatenating variable name/ value pairs onto the URL itself. For example, if you wanted to use GET to send my name and e-mail address to a script located on the register.asp page, you’d specify the URL as: http://www.somedomain.com/register.asp?name=jobe&email=jobe@electrotank.com. The question mark preceding the variables tells the script and server that everything that follows comprise variables. Although GET is easier to use than POST, it won’t work for every situation because it has a 1,024-character limit.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint