Hi,
I'm getting ready to go backpacking in Asia for 6 months and have been working diligently on an online journal system. It's almost ready and I leave in a few days but I have one problem. I want to be able to update my journal, which is basically a mysql table, via email. I've got procmail working and have no problems there. Here's what I can't figure out. The body of my emails will be something like this:
<by>Name</by>
<date>date</date>
<entry>entry</entry>
I can't figure out how to break up this body into either individual variables or an array. I basically want to know what the value in between <by> tags is and be able to insert that into the 'by' field in my table. Same for the entry and date tags. Thanks a lot for your help. Oh, it would help to also be able to do some checking to make sure the body contains a by,date,enty tag so my db doesn't get messed up. Thanks again,
Eli