This could be very easy to do.
so far, I was able to take users input from one text field of form and have output to txt(saved on server) file. TXT file is then used for live music events area of a website.
example of my text file:
[date]Feb. 20[name]Toni N Band[e]<BR>[date]Feb. 21[name]Tom Han[e]<BR>[date]Feb. 27[name]The Kpins[e]<BR>[date]Feb. 28[name]Amy Broome[e]<BR>[date]Mar. 5[name]Tni Ples [e]<BR>[date]Mar. 6[name]Billy Jo[e]<BR> etc...
Is there a way for outputting only to 2nd BR. so only top 2 music events will show instead of all.
one trick is to use explode and use peice[0], peice[1] etc.. . but is there any other tricks I may use?
[date][name][e] is replaced with html span tags for css formatting.
Again the question is how to limit output of txt file to 2nd BR tag.
Thanks you for any hints of advice,