# Pull information from URL

**URL:** <https://forum.kirupa.com/t/pull-information-from-url/117375>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 11:36pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375 "2004-07-26T23:36:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 4:08am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/21 "2004-07-27T04:08:07Z")

</div>

nope, just use php to fill it in, let me get you the code

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 4:14am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/22 "2004-07-27T04:14:47Z")

</div>

```php
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="550" HEIGHT="400" ALIGN="">
  <PARAM NAME=movie VALUE="url_function.swf?<?php echo $_SERVER['QUERY_STRING']; ?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="url_function.swf?<?php echo $_SERVER['QUERY_STRING']; ?>" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

```

is my code, it simply copies the code the get variables from the url and pastes them in

edit: seems I’ve confused the highlighter, but it works anyways 😛

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 4:21am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/23 "2004-07-27T04:21:32Z")

</div>

Thanks for all your help…

I will grab your file and code and work on it after… (need sleep)

I dunno what I would do without ya 😃

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 4:24am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/24 "2004-07-27T04:24:34Z")

</div>

your very welcome 😃

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 8:31am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/25 "2004-07-27T08:31:12Z")

</div>

I haven’t had a chance to play with this, had to nap for a couple of hours in 24…

.swf?\<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>"\>

Is that returning the Host number 5214 ? and not the bit after .html?

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 4:15pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/26 "2004-07-27T16:15:10Z")

</div>

that returns everything after the ? in the url

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 9:16pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/27 "2004-07-27T21:16:43Z")

</div>

Well I knew **Lost** was a Flash Genius…

Now I will have to give you that rating too. 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 9:44pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/28 "2004-07-27T21:44:07Z")

</div>

really?? neeto stupedo 😛

he he  
:bu: :toad: :flower: 🔗  
k… now I feel gay 😛 so I’ll shut up 😛  
but thanks 😉

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 10:07pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/29 "2004-07-27T22:07:26Z")

</div>

Can I be a pain and get you update that link with the new .html and swf ?

I tried adding this to my html, if it is returning anything I am not getting it…  
?\<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>

Sorry for being a pain ☹

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 10:23pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/30 "2004-07-27T22:23:08Z")

</div>

I don’t understand what you’re asking? :huh:, are you saying that it doesn’t work because you have .html and it needs to be .php?

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 10:44pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/31 "2004-07-27T22:44:35Z")

</div>

No I am using the .html

It needs to be .html

.swf? that worked… (but then you can’t control the movie size.)

.php? won’t work because it prints/echo’s to the browser (and not to flash)

.html? I still can’t get to work ☹

I tried \_root.url with the \<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>  
But that returns the url of the .swf with \<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\> attached.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 10:49pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/32 "2004-07-27T22:49:45Z")

</div>

you’re not going to be aboe to use php with a .html extension? in that case?

but make sure the echo is inside the url of the swf, like in my code, it was: VALUE=“url\_function.swf?\<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>”

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 10:58pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/33 "2004-07-27T22:58:25Z")

</div>

VALUE=“url\_function.swf?\<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>”

yeah I tried that, but it didn’t return anything…

Did it work for you in a .html ?

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 10:59pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/34 "2004-07-27T22:59:27Z")

</div>

you can’t use php in a .html document

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 11:05pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/35 "2004-07-27T23:05:24Z")

</div>

Thats what I thought… oh well…

Back to the java…

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 11:07pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/36 "2004-07-27T23:07:48Z")

</div>

can you not use php? well, you could still use the flash part… just devide the url in half at the ? and pass everything to the flash movie like I did, but the string after the ? and don’t forget to include the ? in the url of course before the string though 😉

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 27, 2004, 11:20pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/37 "2004-07-27T23:20:21Z")

</div>

Let me see if I get this…

use

.php?id=8&code=d02d84

VALUE=“activate.swf?\<?php echo $\_SERVER[‘QUERY\_STRING’]; ?\>”

Then do \_root.url in flash ?

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 27, 2004, 11:36pm UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/38 "2004-07-27T23:36:58Z")

</div>

yeah, but you also have to set the url to be like that in the other place in the html, because you call the swf twice usually because of stupid browser bugs :P, anyways, that’s right as long as you update it in both places…

edit: wait no, if you’re in the root, just say id, it’s automatically set as a variable, no need to get the url

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 28, 2004, 2:23am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/39 "2004-07-28T02:23:45Z")

</div>

I have the Java script sending the URL to Flash.

it sends it to a text box with a var: myVar

Now I am trying to work out how to not display it in a text box and use it.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [July 28, 2004, 2:26am UTC](https://forum.kirupa.com/t/pull-information-from-url/117375/40 "2004-07-28T02:26:06Z")

</div>

so the entire url is sent? why do you have javascript sending it? so you can’t use php again? remember, flash can just get the variables from the url it was called from 😉

[Previous page](https://forum.kirupa.com/t/pull-information-from-url/117375.md?page=1)

[Next page](https://forum.kirupa.com/t/pull-information-from-url/117375.md?page=3)
