How to Create CRUD Operation in wordpress front-end side like professional developer

In Worpress front-end CRUD operation How can i redirect from one page to another page

suppose, I have directory wpwp-contentthemescust_themecrud


Cust_form.php

<?php
/*Template Name: Custom Form */ 

if(isset($_REQUEST['submit'])){
  create_new_user($tblname,$_POST);  // see below function.php
  header("Location:List.php");          // Problem (1)
  exit();
}
?>

<form>
  <input type="text" name="name">
  <input type="submit" name="submit">
</form>

Function.php

function create_new_user($tblname,$userData)

{

# do here insert proceess
return true;
}


List.php

Data added successfully.
Listed Here


Problem

  1. How to redirect one page to another Page
  2. Combine all pages like

Include(‘function.php’); // Problem (2)

Read more here: How to Create CRUD Operation in wordpress front-end side like professional developer

Leave a Reply

Your email address will not be published. Required fields are marked *