this the simple php code?
<?
$a = "Good Morning";
?>
so you can write php code <?echo"$a";?> or <?=$a?> ---> simple code
Printable View
this the simple php code?
<?
$a = "Good Morning";
?>
so you can write php code <?echo"$a";?> or <?=$a?> ---> simple code
The code would be :
<?php
$a="Hello World!";
echo "$a";
?>
:-) good luck with your ventures
is 2 are correct!
= --> just line
echo --> more 1 line!
When ever you start a php script, you should really use <?php (you can use <?, but <?php is better) and end in ?>, you should also make sure you scripts are clean meaning they are not all on one line, some time php error can occur here.
BTW you can also do this command "print"...
<?php
$message = "Hello, world!";
print "$message";
?>
Is MEssage box avaliable in php??
msg...
syhs89:
I saw a lot of your posts. Look, just try to start and study the php basics, because you will never learn by asking specific questions like these.
Good day!
.......................................Quote:
Originally Posted by dBlast
Gime me a great link then !!
:lol:lol
What do you mean by message box?Quote:
Originally Posted by syhs89
Some thing like
if the web right click is disabled,
when you click right click,
a message box come out,
writing
No right clicks!
[OK]
...
Any code for it??
I am no good in chinese!!! :cry: :lol:Quote:
Originally Posted by dBlast
Place this java script in you files.
function disableRightClick(e)
{
//Your Message Here!!!
var message = " Right click disabled!\n\r\nScripts © 2004 ~ Sky_net(MX)!";
if(!document.rightClickDisabled) // initialize
{
if(document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = disableRightClick;
}
else document.oncontextmenu = disableRightClick;
return document.rightClickDisabled = true;
}
if(document.layers || (document.getElementById && !document.all))
{
if (e.which==2||e.which==3)
{
alert(message);
return false;
}
}
else
{
alert(message);
return false;
}
}
disableRightClick();
I know,
most of these scrips
can be found in
www.dynamicdrive.com
but i could not understand some.