How to copy MS Word format to Textbox PHP Component?

Posted on 2003-02-21
Medium Priority
Last Modified: 2010-08-05
I want creat a TEXTBOX by PHP and copy MS WORD format in that? Can you help me?
Question by:rosepaint
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7994984
Are you just copying from word and pasting or are you opening the word file and inserting it into the TEXTBOX?  More info would help.  If you are just going to copy then that is easy, the other would be a lot harder and might not be possible unless it is saved as plain text.

Please provide more info for us to go on.


Accepted Solution

s-maxim earned 400 total points
ID: 7999257

If you are trying to read the word file from a PHP script, then this is doable by converting it into XML (there are tools on the web) and then from XML to whatever you need.

If you are hoping to have your form behave as MS WORD does like on hotmail, then simply steal their code :) It's client-side staff. Probably, it is better done with Java applets.

Maxim Maletsky
LVL 40

Assisted Solution

by:Richard Quadling
Richard Quadling earned 400 total points
ID: 8015503
MS Word does not use plain text. You could ask the end-user to save the files in RTF format or as HTML format (much bigger file).

If your server is windows based, then you could read the word file via COM in PHP.


Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question