Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8010157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:39:24+00:00 2026-06-04T18:39:24+00:00

is there possible to edit uploaded xlsx file with PHPExcel? I can read uploaded

  • 0

is there possible to edit uploaded xlsx file with PHPExcel? I can read uploaded file using this function:

<?php
require_once('Classes/PHPExcel.php');
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load("Ataskaita2.xlsx");
$objWorksheet = $objPHPExcel->setActiveSheetIndex(0);
echo '<table border=1>' . "\n";
foreach ($objWorksheet->getRowIterator() as $row) {
  echo '<tr>' . "\n";
  $cellIterator = $row->getCellIterator();
  $cellIterator->setIterateOnlyExistingCells(false); 
  foreach ($cellIterator as $cell) {
    echo '<td>' . $cell->getValue() . '</td>' . "\n";
  }
  echo '</tr>' . "\n";
}
echo '</table>' . "\n";

?>

But also I need to edit these cells is there a way to display these cells in a text fields and save it back after editing? Thank you for advices!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:39:26+00:00Added an answer on June 4, 2026 at 6:39 pm

    You can use PHPExcel to read a spreadsheet file; change the values in cells, etc; and to save the file again… but it does not provide you with a nice pretty GUI. It’s a library for you to manipulate spreadsheet data from your PHP scripts, but your PHP scripts have to provide the form text fields if you want interaction with a GUI front-end.

    Personally, I’d write a custom HTML writer to generate the spreadsheet you’ve read as a form rather than a simple display for presenting to the front-end users, then have a script executed on POST that reread the file, updated it with any changes that the user had made in the form, and save.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any possible way to edit this code <asp:LoginName ID=LoginName1 runat=server style=top: 165px;
Is there any possible to connect .NET app with PHP? I means, PHP will
Is there a possible way to combine the if function and the isset function
Is there any possible way to achieve this? For instance, I have an I/O
Is there possible to edit .htaccess files with Intellisense and syntax highlighting support in
Is it possible to store the uploaded file by move_uploaded_file to a directory and
Is there a mature library for doing decimal-based math, possibly arbitrary-precision, in JavaScript? Edit:
Is there possible, to have some projects under a certain user.name and user.email and
Is there a possible way to refer an object through it's name in Vb.Net?
Is there any possible way of adding class and id attributes in form_dropdown of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.