editaction.php

back


<?php

require_once('classes/editClass.php');

// Includes the class file to edit data in the database.

$id=$_POST['id'];

// Pulling the primary key, $id from $_POST array.
// It is passed to this file from edit.php in hidden form

$name=$_POST['name'];

// Pulling the edited value from the form through $_POST array

$edit=new editClass();

// Creates new object of class editClass

$edit=$edit->editFunction($id,$name);

// Passes the arguments to function editFunction of class editClass

?>