Posts

Showing posts from March, 2012

Passing Javascript variables to PHP

It's easy to get Javascript variable into PHP. What you have to do is follow below code. //in script block var veg = 'Carrot'; //in php block $veg = "<script type='text/javascript'>document.write(veg);</script>"; echo 'Printed My JS variable into PHP: '.$veg; Result will be: Printed My JS variable into PHP: Carrot

CakePHP Auth component

Hello friends, If you have any doubt or want to learn authcomponent just watch this video.