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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Special characters in title bar

  • 25-11-2004 1:13pm
    #1
    Registered Users, Registered Users 2 Posts: 6,240 ✭✭✭


    Hi can people tell me what special characters you can have in a url

    e.g. ?, &, = etc all have special meaning

    also is there any type of work around for these?

    the problem is I have a input box and when it returns in puts what was inputted in the url

    (e.g. if user inputted test) - now my question is if the user typed in test&
    how can I convert '&' so it will not be read as a parameter in the url?

    any help welcome!
    e.g. http://......./&NEW_PAGE=test


Comments

  • Registered Users, Registered Users 2 Posts: 3,889 ✭✭✭cgarvey


    I'm not sure I fully understand the question but...

    If you're just using a striaght forward form, then your browser should escape it automatically (for you to unescape server side) as %26. If you're using JavaScript, check out the escape() method.

    There is an online JavaScript example here although, they roll their own encode/decode.

    .cg


  • Registered Users, Registered Users 2 Posts: 15,443 ✭✭✭✭bonkey


    rfc1738 : the URL standard definition is most likely what you're looking for.

    jc


  • Registered Users, Registered Users 2 Posts: 6,240 ✭✭✭hussey


    bonkey wrote:
    rfc1738 : the URL standard definition is most likely what you're looking for.

    jc
    that's the one - yeah


Advertisement