I have a registration screen where the user can change their data and after clicking the 'Save changes' button changes are made to the database. Here is the button I created in the user edit window:
<input type="submit" name="atualizarusuario.php?id=<? echo $usuarios->fields['id_usuario']; ?>" value="Salvar alterações">
On the 'update user.php' screen I want to get this ID to update it and then display the message that the change was successful. I'm 'getting' the ID as follows:
$id = $_GET['id'];
However, if I give a echo $id
, it is not bringing the ID. What is wrong?