Help me! Html/php?

Trizoy

VIP Member
Hello Everyone,
I need some help in creating some kind of form...

I would input a template of text, and I would like SOMETHING to pull specific text from the file. The text will always be in the same format, and I would like to output some of the text to 2 lines of information with some other text in it... I know it ssounds weird...

But I have this:

PHP:
POD  POA  TRACK               GEN/CHG    LAST USED  EXPIRES
RJAA ZBAA FPD                 06.12.2006 16.12.2004           
OPTIONS USED                                                     
ROUTE INPUTS       AUTOMATICALLY VERIFIED        
J,KCC--V26 JEC G585 SEL G597 DONVO A326 VYK--J

RJAA NRE8R KCC V26 JEC G585 SEL G597 DONVO A326 VYK VYK11A ZBAA
DIST 1297 NM

RESPONSIBILITY:
TT

An I would want it to output this

PHP:
RT,SAV,RJAA,ZBAA/FPD
J,KCC--V26 JEC G585 SEL G597 DONVO A326 VYK--J

I am only pulling from 2 lines!


If you cant visualize it from that, try this



POD POA TRACK GEN/CHG LAST USED EXPIRES
RJAA ZBAA FPD 06.12.2006 16.12.2004
OPTIONS USED
ROUTE INPUTS AUTOMATICALLY VERIFIED
J,KCC--V26 JEC G585 SEL G597 DONVO A326 VYK--J

RJAA NRE8R KCC V26 JEC G585 SEL G597 DONVO A326 VYK VYK11A ZBAA
DIST 1297 NM

RESPONSIBILITY:
TT

An I would want it to output this

RT,SAV,RJAA,ZBAA/fpd
J,KCC--V26 JEC G585 SEL G597 DONVO A326 VYK--J
 
:eek: I'm glad I'm not into that yet :P

with all of the help you give the forum I'm sad to say I cannot help you. i'll try to read up a bit in a little while and see what I find though.
 
Hello Everyone,
I need some help in creating some kind of form...

I would input a template of text, and I would like SOMETHING to pull specific text from the file. The text will always be in the same format, and I would like to output some of the text to 2 lines of information with some other text in it... I know it ssounds weird... blah blah blah




Im still in CSS :D But there might be something here. w3schools
 
Code:
$lines = file('file.txt');

// Loop through the array of the file
foreach ($lines as $line_num => $line) {
Then just pick the lines you want, if you have to figure out which lines try regular expressions or matching lines where you know the content to eliminate them
 
Code:
$lines = file('file.txt');

// Loop through the array of the file
foreach ($lines as $line_num => $line) {
Then just pick the lines you want, if you have to figure out which lines try regular expressions or matching lines where you know the content to eliminate them

Hmm, looks a little familiar.. Ill look at it tonight and try to work it out..

If I have to do this work by hand it would take me about 30hrs to do it.. If i have a program do it!! wow!
 
If you have any other questions feel free to ask. Just so long as they're not about how to find out if pulling FHAYENC out is what you want cause those files make no sense to me :P
 
Back
Top