Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting an uploaded .htm page

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I am making a site that is used by a client to upload their Excel spreadsheets as .htm files since they are comfortable with Excel only. Basically what I need to do is write some PHP so that when the .htm (eg: Sheet01.htm) file is uploaded it changes it's filename to a more meaningful name like pricelist.htm and inserts some html code (like the header, menu and footer).

Is this possible?

Thanks in advance.
 
there is a nice and easy way to do that.

Just build a skelleton of the page, with the header, footer, etc, and in the place you want to put the excel file, just include it. It's easy to do this.

To rename the file, you can give any name to the uploaded file, in the copy function just put the name you want in the second paramter. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top