http://qs321.pair.com?node_id=179740

peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks!

I am trying to connect to my database while the user is filling out the form. It works as such: the user fills out a text box, without submitting the form, I would like to have a pop up window from where the user can have more options that are coming from a database.
Here is my code:
IN HTML I HAVE:
<input type="text" name="textBox" size="8"> <a href="javascript:priceList('form.textBox.value');">Price List</a>
IN JAVASCRIPT I HAVE:
function priceList(text){ win=window.open("cgibin/getPrice.pl?textBox="+text,"","width=250,heigh +t=240") win.creator=self }
IN PERL I HAVE:
use CGI; $q = new CGI; $partNumber = $q->param('textBox'); print ($partNumber);

Thus, as you can see in Perl I am printin the result of what i have got. The result on page that I get is UNDEFINED.
What am I doing wrong?
Thanks Monks I am out of guesses!