Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default Using cpanel print x in perl script

    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 by dgbaker; 04-11-2003 at 01:24 PM.
    Regards,
    David
    Forum Moderator

  2. #2
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    You can try to get some values from the ENV hash:
    $ENV{'REMOTE_USER'} etc.

  3. #3
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Thanks Juanra, that does help quite a bit. I can now pre-populate a lot of the info. I'm hoping to be able to have this fully integrated for my users.
    Regards,
    David
    Forum Moderator

Similar Threads & Tags
Similar threads

  1. a Perl Script stops working after cpanel updates
    By bashprompt18 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-13-2004, 09:02 PM
  2. cpanel free autosignup perl script - 500
    By Gary Henman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-20-2004, 01:10 AM
  3. cpanel print="DOMAIN" gives "yourdomain.com"
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 04-26-2003, 10:00 AM
  4. CPanel Code/Print
    By Axel Teflon in forum Themes and Branding
    Replies: 2
    Last Post: 09-27-2002, 05:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube