Al Hospers wrote:
>
> > Im tryin to creste a simple register type thing on my webpage...
> > I thought of getting people to submit there email address which I
> will
> > append to a text document line by line...
> >
> > How would I tell director to read the text document and search for a
> > specific email address.....
>
> 1 - look into getNetText to retrieve the text file from the web
>
> 2 - once you have the file, use a repeat loop to go thru the file line
> by line checking each line to see if it contains the email address you
> are looking for.
If you just want to know if the address is in there, you could just use
'offset', a non-zero result says it is.
if offset(theText,theAddress) then pItsInThere = TRUE
If you need to know what line it's on (assuming the text file has one
address per line), find the number of lines in the text file from char 1
to the offset + 1
--
Carl West [EMAIL PROTECTED]
617.262.8830 x246
--------------------
To gain face, give it
To lose face, try to save it
Or take it away
- F. Eysenkopf
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]