Hey guys, I have a personal project I'm working on and this is what I need help on. I have a page called settings.php. I want to set a page called settings.php?action=adduser which would pull up a form instead of the things I currently have on settings.php. I saw in a script once that someone was using arrays or something like that? If anyone can help me out or even just point me in the right direction, I will greatly appreciate it. If I'm not making any sense whatsoever, let me know and I will try to reword it. Thanks,
Well when you go to settings.php on the website, its a simple form that send data to a mySQL database. I want to create another form for adding an admin to the database but I don't want to create another file. I want it to be settings.php?action=addadmin or something like that.
That's pretty easy. <?php $action = $_GET['action']; if($action == "addadmin") { // Add the add admin form here. } else { // Add the main form. } ?> PHP:
Ahhh... Thats exactly what I need. I had this code before but I just couldn't make it work. Thanks a lot bro