Search Tutorials
Sending values to your CGI Sending values back to your CGI is as easy as getting them from your CGI (as far as Flash is concerned). By using the Load Variables command as we did before, we can also pass values to our CGI.
So, in our ActionScript above, we use a TellTarget command to look inside the Variables movie clip on the main timeline, and then we use LoadVariables as before, but this time, we send our variables using the Get method, which passes the values as part of the URL back to your CGI. You can also specify the form method, which packages your values as if you were using a standard HTML form. In our case the URL would look like this: http://www.yourserver.com/survey.asp?lsAnswer=btnAnswer4 This is a great way to test your CGI, because you can type the string above into the Location/URL field of your browser and see what the result is. Using ASP with a Response.Write statement, it's very easy to echo back what you've passed in, just to make sure what's being received by your CGI is what you *think* you're passing in.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|