PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I´m trying to build an function that opens a page to edit in a form, but im totaly stuck now. I will try to open it with GET-command, and it worked, but after editing i cant save it. Can you see what the problem is?
I am not a pro myself but I think the problem is because you haven't put any braces in your conditional statements.
If (condition)
{
//code
}
Place braces like this in each of your conditions.. I think it might just work
You're not setting a GET variable called "page" anywhere. Variables aren't remembered between pages, so if you load page.php?page=value ... that variable will not be available the next time the page is loaded ... eg when the form is submitted.