Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Can you automatically append parameter to URL in PHP

  • 10-11-2005 12:44PM
    #1
    Closed Accounts Posts: 36


    Can you automatically append a parameter on to a URL in PHP like the way the session_id can be automatically added on to url. Example if i wanted to store a language variable but didn't wan't to use session to store it.

    index.php?language=english

    Can this be done so I don't have to actually add the parameter on to every link manually?
    Cheers


Comments

  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    Easy answer is no, unless you are using sessions, etc you will have to append every url manually to incluse your parameter

    Otherwise you would have to create a function that adds on a paramter to each url (only if the urls were being generated dynamically)


Advertisement