HTML form not directing to index.php on submit

I have only been playing with PHP on and off since August, so I am sure you know loads more than me.
Thanks for your help anyway, much appreciated.
PS Did you login by the way?
I have just got that whole section of the site working where I can now add, edit and delete users and their roles. So it’s good that i got that working. Thanks again

Of course - that’s how I found the invalid form :wink: .

I can’t see where this is the case in my code.
Sorry, I am obviously missing something :blush:

Notes → Search Records? Like you said in the private message?

<form action="?" method="post">
	        <label for="student">By student:</label>
		        <select name="id" id="id">
		          		            <option value="45">Albert</option>
		          		            <option value="46">Feynman</option>
		          		            <option value="47">Dirac</option>
		          		            <option value="48">Landau</option>
		          		            <option value="49">Oppenheimer</option>
	          <form action="" method="post">

If you do not want the HTML posted here then please PM me, the mods will remove it, and I can post the HTML in your private message.

Ah, the problem was the logout button.

<?php include $_SERVER['DOCUMENT_ROOT'] . '/artgibney/includes/'; ?>

which is actually a form,

<form action="" method="post">
    <input type="hidden" name="action" value="logout">
    <input type="hidden" name="goto" value="/artgibney/admin/">
    <input type="submit" value="Log out">

I have moved this line and it is working now.

Thanks for your patience with me.
PS The html you posted is no problem.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.