|
Posted by Daedalus.OS on 06/07/05 16:42
Anyway, now that I'm thinking about it.... Since I think you don't want
result to be returned back to flash, then you probably want the Go button to
simply act like an hyperlink to >
http://catalog.playersmusic.com/catalog/search.php?q=something
>
> In that, I was wondering if you could explain what "mp3db" would be
> considered, is it the name of the text box? I have "search" for the name
> of the text box in the flash portion, no var name, I have when "Go" is
> pressed for the search, that it gets the url
> http://catalog.playersmusic.com/catalog/search.php with the "get method."
> the name of the input box for the html is "q" using the "get method" as
> well.
Ok that sounds more clear ( shorter to read I guess;-) )
So you text box is named search without a var name, so in flash what is
inside can be accessed (set or get) with: search.text
And the variable you want to pass to php is q ... that would give
.....search.php?q=some song ... Is that right ?
Then you want the Go button to bring the user the that url ... ?
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)
> would the format be something like this?
> var q:LoadVars = new LoadVars();
> q.search = search;
> q.send('http://catalog.playersmusic.com/catalog/search.php');
>
> Thanks again. Hope I didnt put too much this time!
>
No it wouldn't. I can explain it if want (even if it's not what you need).
Dae
Navigation:
[Reply to this message]
|