Jump to content

Excel Editor in webpage


apulmca

Recommended Posts

Hi All,

 

I need excel like interface in a form of web page. My actual need is to copy data from MS Excel and paste it into a form. Then I will read it from cell to cell and Process it on server. I think if there is any excel editor for web is available, it should work.

 

All help will be appreciated.

 

Thanks in Advance

Apul Gupta

Link to comment
Share on other sites

I have done an application that processes data pasted from excel but I do it in a different way.

 

The data is pasted into textarea. Then in php script I explode() it first by line breaks, then second time by tabulation (each cell pasted into textarea is separated by tab from others). If the cell is empty, then there are two tabs, so no problem on that.

 

 

Here's code I use

$data = $_POST['data'];  //this is data from form textarea
$data = explode("\n",$DaneDokumentu['DaneAH']);   //  \n is a newline character in windows, data is exploded into rows
foreach ($data as $key => $row) {
	$data[$key] = explode("\t",$row);    // each row is further exploded into cells.
}

Link to comment
Share on other sites

Hi,

 

Thanks For help. It will help me.

 

But I need some more. Means, I want to display excel sheet inside the web page so that a normal user can see that he is doing work in excel otherwise he may confuse.

I think you understood my problem.

 

Thanks for your quick reply.

 

Link to comment
Share on other sites

Anyways,

 

Thanks for your help for processing Excel data in PHP.

 

One more question: I know PHP and working on it from last 1 year but I think I am not using the correct way to doing work.I don't use any environment not any framework.

 

If you can guide me about the code in PHP using Zend Environment, i will be very thankful to you.

 

Thanks

Apul Gupta

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.