The page is a form, in the header file there are about 6 buttons which determine the page you are one, i want to disable all but the first button if we are on the first page(first button)
Thank you
This is in a foreach loop to fill in all buttons with a different pagename:
echo '<input type="submit" name="submit" id="completeButton" class="menu' . ($page == $p ? '_selected':'') . '" value="' . $p . '">';
I guess you have a page ID somewhere
Do you loop through your buttons to create them ?
If you don’t loop through them, you just have to add something like
Then for the second button, you test it with $pageId !== 2 and so on…