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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I go about sending input text to an html page

Status
Not open for further replies.

meaje

ISP
Jun 27, 2003
4
US
I have gotten my flash screen finished but now I can not send the collected data to my CGI script. I have a button on the flash page that calls the script but nothing is getting passed into the varibles I am using. How do I make the input text boxes save their contents to a varible I can pass??

Thanks, Jeff
 
ok I just found out that if you define the varibles in a function that is not good enough to get it passed as a POST but defining the varible in the global domain for that layer flash will pass that varible automatically if you select send with POST or send with GET in the options of getURL()
 
meajie,

Have you ever thought about using some ActionScript and ColdFusion? Within your submit button use this code.
on (release) {
if (first_name eq "" || last_name eq "" || email eq "") {
} else {
getURL("insert.cfm", "", "POST");
}
}

We're assuming your three fields will be first_name, last_name, and email. The CF page will call insert.cfm.

Then in your insert.cfm page use this code.

<cfinsert datasource=&quot;flashcfm.mdb&quot; dbtype=&quot;odbc&quot; tablename=&quot;flashcfm&quot;>
<cfoutput>
#first_name#,<br>
You submitted the following information into our database:<br>
First Name:#first_name#<br>
Last Name:#last_name#<br>
Email:#email#<br>
</cfoutput>

I used a MS Access db called flashcfm. This will take the three input text fields and pass them using CF to a Access database as well as give you a thank you for submitting page.

I hope this helps.
Brashear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top