Search code examples
phphtmlvariableshrefbackend

Passing a variable through href - is it a good approach?


I'm currently working on my school project and I started wondering if it's a good approach to pass some variable through href so it can been seen in the URL. Is it good or a bad way and why?

Or are there any better ways?


Solution

  • If it's not information that should be private I don't see why you couldn't do it. Especially if you need to reference something on a new page, it would make things easier.