Jump to content
xisto Community
Sign in to follow this  
iGuest

how to get a text feild data from an html page to actionscript Code For Save Input Data

Recommended Posts

how to get a text feild data from an html page to actionscriptCode For Save Input Data

1.How to save the text field data in to a variable in html page?

2.How to get a text feild data from an html page to actionscript

-reply by jasmi

 

Share this post


Link to post
Share on other sites

I personally don't know much about actionscript, but I DO know that Actionscript can access a database so a definite way would be to store inputs in the database and have actionscript retrieve it. To do what you want, you'd have to learn PHP and MySQL. Here's a snippet of code for PHP and MySQL, and you're on your own for actionscript.The textarea:

<form method="process.php" method="post"><textarea name="myTextArea"></textarea></form>

mySQL

CREATE TABLE  `inputs` (`id` INT NOT NULL AUTO_INCREMENT ,`input` TEXT NOT NULL ,PRIMARY KEY (  `id` ))

process.php (in the same folder)

<?php$post = $_POST['myTextArea'];//Connect to database... Look up how to do this in PHP.mysql_query("INSERT INTO inputs (input) VALUES ('{$post}')");?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.