thanks a lot first of all. this works, but im afraid it is not really useful for my specific problem.
i didnt say that i dont only have one variable but a triplet of them
while (...) {
$i++;
echo "<input type=text name='url".$i."'>";
echo "<input type=text name='urltext".$i."'>";
echo "<input type=text name='id".$i."'>";
}
and then i want to insert these into a mysql-db for each triplet of them
INSERT INTO links(id,urltext,url) VALUES ('$id1','$urltext1','$url1')
INSERT INTO links(id,urltext,url) VALUES ('$id2','$urltext2','$url2')
and so on...