Hi
I'm completely new to PHP and having been trying to do something that I could do easily in other languages. Please help.
I'm working on a WordPress website and would like like to set a variable in each POST and that variable be inserted to a piece of PHP that's included when the POST is loaded.
For example:
In a POST for Ireland, I'd like to have a variable called $city set to DUBLIN and in the PHP there'd be a line like this:
<script type="text/javascript">
ENG.THISCITY($city)
</script>
I can't get it to work!?!?
Any ideas?
Thanks
Mick