in reply to Re^4: perl + cgi - onclick generation problem
in thread perl + cgi - onclick generation problem

I got it :)
print $cgi->hidden( -name => $field_name, -default => $field_data, -override => 1 );
This is what I want and its working now as expected.
Thanks for all the help offered :)