SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Location
    Melbourne, Australia
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does ASP have an equivalent for ISSET (php)?

    Hi

    Does anyone know if ASP has the equivalent of ISSET in PHP.

    eg. below:

    It just basically says if a variable IS SET do something...

    PHP Code:
    <?php 
        
    if (isset($userName))
            print 
    "Welcome " $userName "<br>";
        else
            print 
    "You are not logged in <br>";
    ?>
    Thanks in advance...

  2. #2
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There isn't an inbuilt function like isset() but you can use Marcus' function isBlank() which you can have at http://www.sitepoint.com/forums/show...4&postcount=13
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!


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
  •