Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Can you automatically append parameter to URL in PHP

Options
  • 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