am getting param from link like localhost/test?id=1 # get param $id param("id"); then i select from db # select id from db select name from db where id = ? #$id $get_name_from_db # $TO = 'test@mail.com; $FROM = 'email@mail.com'; $SUBJECT = 'hello'; $MESSAGE = "Dear friend, $get_name_from_db "; open(MAIL, "|/usr/sbin/sendmail -t"); print MAIL "To: $TO\n"; print MAIL "From: $FROM\n"; print MAIL "Subject: $SUBJECT\n\n"; print MAIL $MESSAGE; close(MAIL); my problem everytme when i click submit and link relond. i get message in my inbox but null. $get_name_from_db don't get name in message this works. when i have just put id directly # get id $id = "1"; then i select from db # select id from db select name from db where id = ? #$id $get_name_from_db # $TO = 'test@mail.com; $FROM = 'email@mail.com'; $SUBJECT = 'hello'; $MESSAGE = "Dear friend, $get_name_from_db "; open(MAIL, "|/usr/sbin/sendmail -t"); print MAIL "To: $TO\n"; print MAIL "From: $FROM\n"; print MAIL "Subject: $SUBJECT\n\n"; print MAIL $MESSAGE; close(MAIL); my qustion is there any logic to store param. coz if i get param from localhost/test?id=1 that means when page relond. i get null resluts sent to my email