Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Retrieving value from HTML->Javascript->Perl

by peacemaker1820 (Pilgrim)
on Jul 05, 2002 at 20:59 UTC ( [id://179740] : perlquestion . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <input type="text" name="textBox" size="8"> 
    <a href="javascript:priceList('form.textBox.value');">Price List</a>
    
  2. or download this
    function priceList(text){
    win=window.open("cgibin/getPrice.pl?textBox="+text,"","width=250,heigh
    +t=240")
    win.creator=self
    }
    
  3. or download this
    use CGI;
    $q = new CGI;
    
    $partNumber = $q->param('textBox');
    print ($partNumber);