Your explanation of what you are trying to do is inadequate to provide a correct answer. I can't post a complete education in basic electricity in one post, but you need to know the range of current required to get the brightness range you want.
For a very low power lamp, a variable resistor might work. If it requires much power, at all, you could end up with a flaming resistor under some conditions.
With the proper information, the answer is simple. You can PM me for a little help, or you may get some help from another member or a local friend.
IF YOU DON'T KNOW WHAT YOU'RE DOING, DON'T DO IT.