SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2007
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to write false $_REQUEST, please help

    This is if statement $_REQUEST if the language translated

    if ($_REQUEST['language']) {
    }

    i need to set the opposite, if the language not translated, what its looks like, please help





    which one is correct? or no one of them

    if (!$_REQUEST['language']) {
    }

    if ($_REQUEST!['language']) {
    }

    if !($_REQUEST['language']) {
    }
    Make the world better

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,084
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    None of those

    PHP Code:
    if (!isset($_REQUEST['language'])) {


    Also, try to stay clear of $_REQUEST, but use $_POST or $_GET instead (whichever one you need)
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •