View Full Version : Installers
Hypertext
22-03-2008, 11:42 PM
I've nearly finished my site management system, just wondering, was should be in the install file, and how do you guys hold values for next pages eg should i do 1.php, 2.php or index.php?at=1 index.php?at=2 etc, and do you hold previous values in cookies or sessions or retain them through hidden inputs?
Thanks -Charlie
<form action='install2.php' method='POST'>
etc..
install2.php
$name = $_POST['name'];
etc..
Hypertext
23-03-2008, 02:08 AM
How would you hold the variables moving onto install3.php from install.php sessions or cookies or hiddens or..?
Independent
23-03-2008, 05:44 AM
Just make it one page
instead of new pages
hold it within an if statement that makes ?go=go (etc..)
if($_GET ['stage'] == "1");
etc, with the correct brackets
Hypertext
23-03-2008, 06:41 AM
Thats what I'm doing, but how should I hold PREVIOUS form options, eg in step 1 I choose site name 'example' how do I still remember that in step 3, cookies sessions hidden inputs or what else?
Oh, better way of putting it ;) I think it is cookies but i'm not too sure.
Maybe take hints from other installs, cutenews ect.
Independent
23-03-2008, 08:55 AM
Cookies wouldn't need to be started on every stage...
ob_start();
cover's on every step? :S
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.