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
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
Try this:
echo isset($_GET['abc']) ? $_GET['abc'] : 'please put valid value for abc';
// OR
// SET DEFAULT VALUE
$result = 'please put valid value for abc';
// TEST
if(isset($_GET['abc']))
{
$result = $_GET['abc'];
}
echo $result;
i try this but does’nt work
i am using an iframe ,
here
http://utguyiui.webatu.com/ns.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
Display all the items in $_GET then test for an exact match, etc
echo '<pre>';
print_r($_GET);
echo '</pre>';
don’t understand that
how we can write all items in $_get
please write this correctly for me
i am showing my full code
this is i am using
<iframe frameborder=“0” width=“480” height=“272” src="http://www.dailymotion.com/embed/video/<?php echo $_GET[abc]; echo isset($_GET[‘abc’]) ? $_GET[‘abc’] : ‘please put valid value for abc’;
?></iframe>
when there is no veriable @ <iframe frameborder=“0” width=“480” height=“272” src="http://www.dailymotion.com/embed/video/veriable
then only show error message no iframe with message
you can see when use http://utguyiui.webatu.com/ns.php?abc= (empty)
iframe is showing and no error message
Plesae
You are missing quotation marks around ‘abc’
Php thinks ABC is an undefined constant.
but its still showing iframe not displaying error message
chk this
http://utguyiui.webatu.com/ns.php?abc=
Try removing the first $_GET[ABC] from your link.
<iframe frameborder="0" width="480" height="272" src="http://www.dailymotion.com/embed/video/<?php echo isset($_GET['abc']) ? $_GET['abc'] : 'please put valid value for abc';
?></iframe>
doesn’t work
Back on my desktop…
Try this: