---
title: "How to create edit and update link"  
description: "How to create edit and update link"  
author: "pintu nayak"  
published: 2011-11-16  
updated: 2011-11-16  
canonical: https://www.mindstick.com/forum/356/how-to-create-edit-and-update-link  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How to create edit and update link

Hi all,\
\
I have 4 [input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java) [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) as \
\
empid,empname,empaddress,salary and a Add [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net).When i enter data and [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) add button all data will be inserted into [database](https://www.mindstick.com/articles/12226/use-of-database-in-sencha-extjs-and-insert-record-from-user-form-using-ajax) and the [result](https://www.mindstick.com/blog/12011/advantages-of-getting-result-oriented-seo-from-an-agency) will be display below the [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) in form of a table.In that data two [links](https://www.mindstick.com/blog/415/css3-links) such as edit and [delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) will appears.When we want to edit some data we can do it and also can delete the [records](https://www.mindstick.com/forum/34640/how-to-create-a-stored-procedure-for-display-all-records) with delete link.How to do it.\
\
\
Thanks

## Replies

### Reply by Anonymous User

Hi Pintu Nayak,\
First of all, make two pages something like dataPage.php and footerPage.php where dataPage.php contains your textboxes and Add button and footerPage.php contains table with buttons (edit, delete etc). After doing this use require function within a form of main page. In footerPage.php, get selected row value and perform appropriate action on button clicks whatever you want either edit or delete.


---

Original Source: https://www.mindstick.com/forum/356/how-to-create-edit-and-update-link

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
