Reply to Re: sending flash variable to php file

Your name:

Reply:


Posted by Daedalus.OS on 06/08/05 05:28

ok, if you have the event handler directly on the button then it's a little
different.

the way I use it was for actionscript written on the timeline frames... (but
onClick was a mistake, it's javascript. Sorry, there is so much languages in
that head that sometimes I mixed them all)

Anyway since the script is directly attached to the button, it should be
something like that:

on(release){
getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
'_self');
}

_self need to quoted, '_self'

And for the GET thing. In this case, this is that part '?q='+search.text'
that says it's a GET. Get is a method that passes parameters throught the
URL. HTTP GET in fact is what the browser use to request any web page. It
make a GET request for /index.html at a server and the server 'serves' the
page to the browser. But what is after a question mark ? in a url is
considered as parameters for a script. So all you have to make a get request
is passing the parameters in the url. It's the same in flash.


Dae


"WhiteJediGuy" <Blader18x2005@cox.net> wrote in message
news:V7spe.4566$7s.3027@fed1read01...
>I have for the actionscript on go_btn:
> on(release){
> go_btn.onClick = function()[
>
> getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
> _self);
> }
> }
>
> For some reason though it does not work. If I put quotes around
> +search.text it puts a search in for search but not what the person typed.
> Such as http://catalog.playersmusic.com/catalog/search.php?q=search
> Also, for some odd reason, it is replacing, "Search Here" in the input box
> with level0 stuff.
> And I thought "GET" was suppose to be somewhere in the syntax.. Thanks
>
>> If i'm right, forget about the LoadVars, it's not what you want.
>> (I'll pretend you called your go button go_btn):
>>
>> go_btn.onClick = function(){
>> // You can add some sort of form validation code here
>>
>> getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
>> _self);
>> }
>>
>> This would bring your visitors to search.php?q=(what was in the flash
>> input box)
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация