Boris2
11-30-2005, 04:01 PM
Hey guys, I am a PHP Developer newbie, I started coding about 2 years ago, got pretty good, but lack of time meant I pretty much gave up coding, now about a year on from since i coded any PHP im struggling to get back into it lol, Now i HAVE done this before but i cannot remember how or what to write...I will try to explain...
Now I have a page with a session etc which retrieves information from a database (MySQL), now it has a form on it to edit a row in a mysql table, now i can do all this with ease, but I want to keep the users on the same page BUT use like a switch command (I think its a switch, ive looked it up on php.net but it wasnt much help), the page is called "nav_edit.php" and when the user clicks the submit button on the form I want it to go to "nav_edit.php?do=nav_edit2" then process some information...How would I go about doing this? Like I said i used to code a lot but this just caught me out...Im pretty sure you use a switch.
Best Regards,
Boris
Now I have a page with a session etc which retrieves information from a database (MySQL), now it has a form on it to edit a row in a mysql table, now i can do all this with ease, but I want to keep the users on the same page BUT use like a switch command (I think its a switch, ive looked it up on php.net but it wasnt much help), the page is called "nav_edit.php" and when the user clicks the submit button on the form I want it to go to "nav_edit.php?do=nav_edit2" then process some information...How would I go about doing this? Like I said i used to code a lot but this just caught me out...Im pretty sure you use a switch.
Best Regards,
Boris