# {mx}how do i have an input text box write to html

**URL:** <https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610>\
**Category:** flash\
**Created:** [November 25, 2002, 4:13am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610 "2002-11-25T04:13:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.kirupa.com/u/Marc)\
**Post date:** [November 25, 2002, 4:13am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/1 "2002-11-25T04:13:40Z")

</div>

Hi all,

I’m trying to work out how to get an input text box, on the click of a btn, to send any text in it to a html page. I can do this in flash by having an input write to a dynamic text box but I’m not having much luck working out how to do this with a html page.

I kind of understand the document.write JavaScript and I’m getting my head round that now but I can’t seem to find anything on the JS I need to do the above. Could someone point me in the right direction before my brain goes into over drive.

Thanks for any help with this

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 12:49pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/2 "2002-11-25T12:49:39Z")

</div>

I guess you’ll have to use FSCommands. I don’t know how to use them, but I was advised this technote: [http://www.macromedia.com/support/flash/ts/documents/tn4160.html](http://www.macromedia.com/support/flash/ts/documents/tn4160.html)

pom :cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 1:56pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/3 "2002-11-25T13:56:23Z")

</div>

Actually, a simple js function call might work. I don’t know the first thing about js, but maybe something like that would work:

```auto
getURL("javascript:self.write(\"someStuff\")");

```

You better wait for Lost on that one 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 1:30am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/4 "2002-11-26T01:30:39Z")

</div>

Thanks. I’ll look into that now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 5:51am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/5 "2002-11-27T05:51:37Z")

</div>

Ilyas…do you mean this?..

```php
on (release) {
	myText = "javascript:document.write('<B>HELLO</B> <I>MY FRIEND</I>!!!')";
	getURL(myText);
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:26am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/6 "2002-11-27T06:26:19Z")

</div>

Question: I thought that there was a way to have flash actually create a new html page dynamicaly… is that php and/or can someone point me in the direction of a good tutorial based upon that principal?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:28am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/7 "2002-11-27T06:28:19Z")

</div>

Never heard about it :-\

You could do it in Javascript, but that would take a lot of lines…LOL.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:30am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/8 "2002-11-27T06:30:47Z")

</div>

Well the data can be sent to the PHP script using loadVariables, and I know that PHP scripts can create html pages for the user to see… or maybe that’s PERL. ■■■■ it… I wish that there were not 5 different major markup/programing languages. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:31am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/9 "2002-11-27T06:31:36Z")

</div>

No its PHP.

PHP is the newage (and easier and better) PERL.

I have no clue how to do that though, since I have very little knowledge of PHP.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:55am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/10 "2002-11-27T06:55:09Z")

</div>

Well I know that there are a couple of php masta’s around here somewhere. They’ve been in and out. Hopefuly one will see this thread. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:56am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/11 "2002-11-27T06:56:12Z")

</div>

Dan told me “ask” is a PHP master.

h88 probably knows something too.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 4:09pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/12 "2002-11-27T16:09:42Z")

</div>

> \*Originally posted by lostinbeta \*  
> **Ilyas…do you mean this?..**  
> I don’t know what I meant exactly 😛 Probably, yeah…

And about that page creating thing, I’m sure you can do it with PHP. Anybody saw that wiki thing work? (they have one at flashcoders and one on a French flash board) It’s a real beauty. You type a link in your existing page. The page is created automatically. As simple as that. :o

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:02pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/13 "2002-11-27T18:02:19Z")

</div>

That sounds cool 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 9:10pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/14 "2002-11-27T21:10:03Z")

</div>

yea i want to expirement with Flash and PHP in writing HTML etc =) That’ll be fuN!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 12:46am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/15 "2002-11-28T00:46:47Z")

</div>

Hey, this PHP stuff has really interested me. I’ve been reading about it and have found out that I need a server to have php server capability and for me to test locally I need software to test .php files with htm files. Very new to this but very interested and am considering going head first into it.

What’s the best program to install to test locally?

I use Dreamweaver MX and I’ve noticed in the Site Definition that I can set up this local testing. I’ve heard of Cold Fusion. Is that what I need to test my php projects?

Basically, I really need to know what to go out and buy without making any mistakes.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 3:37am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/16 "2002-11-28T03:37:20Z")

</div>

Okay, here is what i’ve got:

======== Flash ========

```php
dataHandler = new LoadVars();
dataHandler.bgcolor = "#AA6633";
dataHandler.textColor1 = "#000000";
dataHandler.bodyText = "this is some text";
dataHandler.send("Generator.php", "_blank", "POST");

```

======== PHP ========

```php
<html> 
<head> 
</head> 
<?
     $bgcolor = $_POST['bgcolor'];
     $textColor = $_POST['textColor'];
     $bodyText = $_POST['bodyText'];

    print "<body bgcolor=$bgcolor text=$textColor>";
    print $bodyText;
?>
</body> 
</html>

```

I think you all got the idea of the php script, tell me now what’s yours. 🙂

yours,  
h88

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 3:40am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/17 "2002-11-28T03:40:21Z")

</div>

I just tested it, its working fine. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 3:42am UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/18 "2002-11-28T03:42:30Z")

</div>

yeah that’s what I’m talking about. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 12:18pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/19 "2002-11-28T12:18:36Z")

</div>

With your script h88 I assume that I’d give the exetension .php to the php script above and save it with notepad and create a .swf with the above AS in the same folder for convenience. Then it genreates a html file?

Could someone be kind enough to tell me what software I should install to test php on my computer? Is Cold Fusion what I need?

Sorry if this is daja vu, it’s that I just t-type away and end up saying something that could be said a lot more simpler:)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 28, 2002, 12:28pm UTC](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610/20 "2002-11-28T12:28:12Z")

</div>

You can install easyPHP. Very easy, as it says.

And Coldfusion is coldfusion, not PHP.

pom :cowboy:

[Next page](https://forum.kirupa.com/t/mx-how-do-i-have-an-input-text-box-write-to-html/8610.md?page=2)
