|
|
how to get a text feild data from an html page to actionscript - Code For Save Input Data | ||
Discussion by iGuest with 1 Replies.
Last Update: April 9, 2010, 9:42 pm | |||
![]() |
|
|
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
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}')");
?>
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:
CODE
<form method="process.php" method="post">
<textarea name="myTextArea"></textarea>
</form>
mySQL
CODE
CREATE TABLE `inputs` (
`id` INT NOT NULL AUTO_INCREMENT ,
`input` TEXT NOT NULL ,
PRIMARY KEY ( `id` )
)
process.php (in the same folder)
CODE
<?php
$post = $_POST['myTextArea'];
//Connect to database... Look up how to do this in PHP.
mysql_query("INSERT INTO inputs (input) VALUES ('{$post}')");
?>
Similar Topics:
Html Tag For A Code Box
Stop Your Html Codes From Being Sto...
Hello people! Obviously a lot of people use these little scripts to stop you from right clicking on websites/HTML pages etc. I know many many people use near enough the same kind of coding as the one I just made. I decided not to put this in the Tutorials section because I know alot of other cod ...more
Code For Save Input Data
I've Entered Into The Programming World... (13)
|
(10) A Brainstorming Question...
|
Loading...
HOME 





Flash Tutorial Load HTML Format External Text Into Dynamic Text Field CS3 CS4 CS5
Flash CS4 CS5 CS5.5 PHP MySQL CMS - Content Management System Website Tutorial
Flash PHP MySQL Communication Tutorials Intro ActionScript 3

