all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

Form - zip search


Form - zip search spacetony
5/31/2005 9:50:35 PM
flash actionscript: Hi

I am trying to create a simple zip search box that links to a cgi script on a
map search company's server.

The company sent me the basic <form action="http://thesitenamehere.cgi" method
="get" name="zipsearch" id="zipsearch">

I can create the form using HTML, but my site is only using Flash.

I created a input text box, but don't know what kind of Flash code I need.

Basically the user is suppose to type in their zip code and hit enter. The zip
field is linked to a map search company. Unfortunately the company doesn't know
the code for Flash.

Thanks
Re: Form - zip search !lurk
6/2/2005 3:29:47 PM
You need just one more piece of information, the name of the zip code
HTML text field. That is, <input type=text name=[this value]>

Then in your Flash, set the variable name of your input text field to
[this value]. Call geturl("http://thesitenamehere.cgi", "_blank",
"GET"), and your variables will automatically be submitted.
Re: Form - zip search !lurk
6/2/2005 3:32:23 PM
You'll need one more piece of information, the zip code HTML text field
name. That is, the part in []s:

<input type=text name=[zipcodename] size=5>

Then in Flash, make an _input_ text field and set the variable name
(not the instance name) to [zipcodename]. When you call geturl(), all
your variables will automatically be submitted, e.g.

geturl("http://thesitenamehere.cgi", "_blank", "GET");
AddThis Social Bookmark Button