Menu
I’m using the following script to echo IP:
var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’
function ipval() {
document.myform.ipaddr.value=ip;
}
The problem is it only works when I save the file as .shtml !!!
I need this to work in .php file. Is there anything I can do to make this work in .php file?
Please advice, thank you