GetURL using a variable

  • RockmanTV
  • Proficient
  • Proficient
  • RockmanTV
  • Posts: 348

Post 3+ Months Ago

I'm designing a stock search, and developed the look in Flash.. I have an input box for the search with the variable name "stocksearch" and I have a submit button with the following actionscript behind it.

Code: [ Select ]
on (release, keyPress "<Enter>") {
        sitesearchVAR = 'stockframe.php?stocksearch=' + (stocksearch)
        getURL('(sitesearchVAR)', 'stocksframe');
  1. on (release, keyPress "<Enter>") {
  2.         sitesearchVAR = 'stockframe.php?stocksearch=' + (stocksearch)
  3.         getURL('(sitesearchVAR)', 'stocksframe');
  4. }

I'm trying to place what a user types in the input box on the end of this URL: "stockframe.php?stocksearch=" and then load it in the frame as displayed in the code. I just can't get the getURL to use the variables data as the URL. If someone could help me out or show me what I'm doing wrong I'd appreciate it.

P.S. the PHP part of the script is already in place. Typing in stockframe.php?stocksearch=goog pulls up Google stock information.

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.