Hello,
I'm using this script right now:
mainpage.php
renamegroups.phpHTML Code:<?php $mainpage = 'secret'; ?> <a href="#" id="renamegroups">Rename groups</a> <div id='renamegroupsl'> </div> <script type="text/javascript"> $('#renamegroups').click(function(){ $("#renamegroupsl").load("../information/renamegroups.php"); return false; }); </script>
The problem is that I get this error:PHP Code:<?php
echo $mainpage;
?>
Notice: Undefined variable: mainpage in (...)
So how could I include a file with ajax / jquery (because if I include the file this will work and the error won't show up)
Thanks!


Reply With Quote

Bookmarks