Thanks Roger...
but i m still not very sure on where shud i input this 'map' function. I attach my code, can u pls hv a look and give me some guidance? Thanks a lot!
imagefill($im, 600, 600, $blue);
imagesetthickness($im, $_POST["1"]);
imageline($im, 46, 70, 360, 70, $red);
imagesetthickness($im, $_POST["2"]);
imageline($im, 380, 70, 720, 70, $cyan);
imagesetthickness($im, $_POST["3"]);
imageline($im, 365, 90, 365, 320, $cyan);
imagesetthickness($im, $_POST["4"]);
imageline($im, 46, 330, 720, 330, $cyan);
There is a part for my line but dunno where to input the 'map' function.
JT