Hide ? id= from php URL

Asked

Viewed 137 times

0

Is there any way to hide ? id=1 from the URL? I would like to hide this so that no one can change it through the URL, if possible not only encrypt it, but actually hide it. I tried to do it for Ajax but I think I’ve come a little far!

I am passing my "id" as follows:

<tr class="clickable-row" data-href="editar-equipe.php?'.$id.'">
   <td>'.$nome_equipe[$a].'</td>
   <td>'.$responsavel[$a].'</td>
   <td>'.$cidade[$a].'</td>
   <td class="text-right">'.$uf[$a].'</td>
</tr>

I need this ID to know which team I’m editing. Only I wouldn’t like to have a URL with ? id= at the end.

  • And how would you identify the record you need to access? How would you like the URL to look?

  • For example: meusite.com.br/edit-pessoa

  • Right, does the user need authentication to access the page? This change would be the data of the person himself or could be of anyone?

  • I edited my question, check there please! Yes the user needs to be logged in to access the page.

  • The URL in the format /editar-equipe/nome-da-equipe would be valid? If yes, search for slugs and URL friendly.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.