Hi all,
I've searched through the forum but I just couldn't find anything really close to solving my problem. Well having said that, my dilemma is this:
ok I have a form with two textfields which are turned into two variables, $tfield1, $tfield2, and the form contents would later be saved into a file.
So in my file the textfields will appear as this:
$tfield1-(this is ok if it's just one line)
$tfield2-(this is ok if it's just one line)
now this is easy to extract out if I just type into the textfield without pressing return when I get to the end of a line, then I can just treat each variable as one long line (like I have it above) but if I do press a return while typing, this gives me more than two lines.
$tfield1 - this is a problem if I press
return up there and starts from another line
$tfield2 - this is not really a problem since there's no other variable after this.
Now what I want to know is how do I determine where the contents of $tfield1 ends so I can stop printing $tfield1 from there and then starts printing $tfield2.
If anyone understand what I'm trying to do, please help me. Thank you in advance.