Please take a look at the UDF Forum as there are already a couple of enter-text UDFs.
code:
while trim($text)='' or trim($text)='*'
? 'Enter text:'
gets $text
loop

_________________________
There are two types of vessels, submarines and targets.