0

I'm making an Admin Dashboard for my website and I have two different URL for my website, page for summer and one for winter. I want keep both without edit or change.

so in my admin panel i added html button to change the path

I bind this with my button

<?php

$old= "/Full"; $new= "/only";

if ( $_POST ) {
    $old= $new;
    header('Location: $old'); } 
else {
    header('Location: $old');

but I released it wont work in admin panel. How I can make like this code for admin panel with saving in code only change back when I press opposite button.

reko beko
  • 86
  • 1
  • 1
  • 10

0 Answers0