Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need Help - if there is no veriable then how to show an error message

    my code is
    <?php echo $_GET['abc']; ?>

    then it would be something like this

    ?abc=436346

    but if there is nothing in veriable i mean if ?abc=empty

    then how we can show this message

    " please put valid value for abc"

    Urgrnt PLease Help

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    PHP Code:
    If(!isset($_GET['abc']) || empty($_GET['abc']))
     echo 
    "please put valid value for abc"
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i try this but does'nt work
    i am using an iframe ,
    here
    http://utguyiui.webatu.com/video.php
    and when i try to access veriable for iframe
    http://utguyiui.webatu.com/ns.php?abc=4363437

    it'work but
    when there is no veriable
    it show me iframe here @ http://utguyiui.webatu.com/ns.php

    but i want to display only an error message


  •  

    Posting Permissions

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