I have a script that passes the param to another page and saves it. Works great!
what I would like to do is have it give me the option on the second page to save it as is or with a different file name (my input). I'm fairly new and I can't figure this out.
here is the update.php
<?php
require('thisfile.class.php');
$thisfile = new thisfile('config.inc.php');
$thisfile->save($_POST);
header("Location: config.php");
?>
if I manually rename the file config.inc.php and make it on the server it of course works. but I don't want to have to manually edit the code every time I want to make a new page.
hope that makes sense.
p.s. not using sql