Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a form to a flash button

Status
Not open for further replies.

diginetd

MIS
Jun 2, 2004
1
US
I need to add the following script to current search form field and submit button. It is a script for a CGI search script. Any help would be appreciated on how to incorporate this into the actionscript.

<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="osana">
<input type="hidden" name="basehref" value="<input type="hidden" name="template" value="default">
<input type="submit" value="Search">
</form>
 
Create on the stage an "input" text field for search and a button for "submit".

In the properties pallette for the input field place the name "query" in the Var: field. Right click on the button and select Actions.

Place the following action on the button:

Code:
on (release) {
	user = "osana";
	basehref = "[URL unfurl="true"]http://osana.org";[/URL]
	template = "default";
	getURL("/cgi-sys/entropysearch.cgi", "searchwindow", "POST");
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top