Announcement

Collapse
No announcement yet.

Case sensitivity with querystrings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Case sensitivity with querystrings

    Hi,

    I want to give my script a variable via querystring. How do you solve case-problems, say as the Querystring name=Miller is given you can obtain "Miller" querying HTTP_POST_VARS["name"].

    If the user enters Name=Miller nothing is given back.
    Are there other possibilities than searching the lower case querystring for "name=" and then determining it's value by taking the string begining after the equals sign ending with the next ampersand or at the end of the string?

    Greetings
    Bard

  • #2
    you can't easily cover all the posibilities but maybe you can search for the variable Name, and if present assign that value to the real variable.

    if ($Name) $name = $Name;

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X