Using cpanel print x in perl script


Well-Known Member
Sep 20, 2002
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
I appologize if this sounds a little dumb.

I have a perl/cgi that is used for users to create webpages from templates. I want to pre-populate the form with user info like username, domain etc..

The problem is this:

print &&input type=text size=40 name=\&usrname\& value=\&$usrname\&&&br&&br&\n&;

I need to change the value= portion to something like,

print &&input type=text size=40 name=\&usrname\& value=&cpanel print=&$user&&&br&&br&\n&;

But I cannot get this to work, the value ends up being &&cpanel&
and nothing else. The script is in the 3rdparty area on :2082

Any help is mucho appreciated.
Last edited: