How can I dynamically import Word document text into a HTML Form?

Artisan

New member
What I have:
1. A directory, folder, etc on my server with multiple Word documents. Lets call them recipes for example.

2. I built a page (form) that has a multi-select menu (say on the left hand side of the page) that lists all of the recipes available.

What I need to be able to do if possible:

1. Pick the items from the menu I want to "import" say for example, Basic Salad, Grilled Pork, Green Beans, Creme Brule

2. As the items are chosen the text from that file would show up (in order picked) on the page (say on the right hand side of the page) so I could preview what I have selected.

3. I would than say "process" and all of the individual text fields would be combined into one document and say be displayed, printed, emailed.....the gist being I want to pick this doc, this doc and this doc from the menu and have them combined into one doc to "do something with"

Extra challenge and bonus points......

The additional challenge is that the individual Word docs may have images in them.

The bonus would be if I could edit the text from the page before selecting "process" (say I am the only one getting cream brule I could edit the quantity of ingredients manually to provide for just one serving) which I guess is not the hard part if I can get the rest of it to work.

Any ideas (or examples) would be awesome!!

Thanks

PS: I do have some PHP/HTML code I hacked together trying to work this out (that I could provide if it would help...but I don't think it will) that just for starters had some check boxes and matching text fields (hidden) as you check a box that field is displayed...and I figured hey just have them text pre populated into the corresponding field but alas its a poor idea....the images don't play well and maintenance would be a nightmare updating the page for every new "recipe" I wanted to add. I would like to be able to just drop a new recipe (doc) into the folder and add the item to the menu....
Jack,

From what I have been reading I would have to agree that word is a pain to work with. It is preferable but not a must have so converting to txt would work. The head.pfp and foot.php makes sense too. Here is where I am lost……

Two of the must haves are:

(1)There must be a menu that the user can pick multiple items, say pumpkin pie and grilled chicken and…

(2)Second everything that gets selected from the menu must show up on the one screen to preview prior to selecting “process” which will combine everything into one text file.

Would I be able to accomplish this with what you showing here? I am tying to sort it out to see if I can make that work.

Thank you very much for your suggestion!!!
 
Back
Top