# Targetting iframe page from flash

**URL:** <https://forum.kirupa.com/t/targetting-iframe-page-from-flash/29588>\
**Category:** programming\
**Created:** [August 28, 2003, 1:41pm UTC](https://forum.kirupa.com/t/targetting-iframe-page-from-flash/29588 "2003-08-28T13:41:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [August 28, 2003, 1:41pm UTC](https://forum.kirupa.com/t/targetting-iframe-page-from-flash/29588/1 "2003-08-28T13:41:38Z")

</div>

This probably goes in the flash section, but i thought it’d be more relevant to Javascript (i think).

So anyways, i have a flash created button. And i want this button to change the content of an iframe. How would i do this? I was thinking using ‘getURL’. But i’m not too sure how. I was also thinking of sending a variable to a PHP page, and then processing it from there. But i’m not sure which it would be. Any clues? 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:** [August 28, 2003, 7:42pm UTC](https://forum.kirupa.com/t/targetting-iframe-page-from-flash/29588/2 "2003-08-28T19:42:56Z")

</div>

```auto
getURL("location", "target", "method");

```

target is the name of the frame. And sending variables to a php page can be seen here:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604)

---

<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:** [August 29, 2003, 4:30am UTC](https://forum.kirupa.com/t/targetting-iframe-page-from-flash/29588/3 "2003-08-29T04:30:52Z")

</div>

Yeah thanks that works perfectly jubba :thumb: but i was just doin a test with the send variable thing, but it doesn’t see to work :-\ I have this code in my PHP page:

```php

<?PHP
$var1 = $_POST['inputbox'];
print "VAR1 = ".$var1;
?>

```

and this code in my flash:

[AS]  
on (release) {  
getURL(“processVar.php”, “\_blank”, “GET”)  
}  
[/AS]

I’ve tried changing the ‘gets’ and ‘posts’ around but they dont seem to work sill :-\ I’m trying to send some information from an input box to process through the php form. Do you know whats wrong? thanks!
