I have a hyperlink <a href="<?php echo http://www.google.com?q=".$dynamicsearch; ?>" title="Link"></a> that is on a cakephp view.
When I click the link the $dynamicsearch needs to be updated every time the link is clicked.
I tried to create a function in the cakephp controller by calling the action generate_random_word on the controller. When I click the link the controller would choose a random word on demand and then add it as the parameter and then redirect the url to open google in the browser with the random word.
I have tried many ways but have not found the solution. Any ideas!