0
I’m looking for a div from another page and putting in my:
my div:
<div id="teste"></div>
script:
<script type="text/javascript">
$("#teste").load("http://www.home356.org/index.php #ip_filter");
</script>
With this script the result of the #ip_filter div on the index.php page is loaded into the #test div normally.
The content of this ip_filter div is an ip address of who accesses index.php. On my page I would like to put a condition in php that if the ip address (value that will be brought to div #test) is x.x.x.x, do: echo = "something". if not x.x.x.x, do: echo = "something else".
I think it is possible to do this condition with javascript even, but the problem is that there are linux machines on the network using firefox browser and javascript disabled on these machines.
Is it possible to do this using php?
From what I understand you want to make the condition with php because javascript may be disabled, but the request with
load
uses javascript in the same way. o. o– Felipe Duarte
True, I didn’t really take that into consideration. Actually what I want is to disable the input below and change the value of the placeholder if the ip that is in the div #test for x.x.x.x <div><input name="Try" type="text" id="Try" placeholder="Try" value="""?
– tiagopraz
Got it, answered...
– Felipe Duarte