chen li wrote: : I just try a small CGI script. Although it displays no : problem on the webpage there are two small errors in : the script. I wonder if anyone here can help me figure : out.
[snip helpful code] : my $name=$query_obj->param('text_field'); : print $query_obj->p,"This is your name $name", : "\n\n"; #line31 : : : print $query_obj->p; : my $major=$query_obj->param('menu_name'); : print "This is your major $major "; #line35 On your first pass through the script the form has not been filled out, so text_field and menu_name have no associated values. CGI.pm will return there values as undef. Thus $name and $major are not initialized. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. PS You are using the paragraph tag <p> incorrectly. You should either use <br> tags or give your paragraph tags some content. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>