Hi people, i am facing a problem with my app.In particular i use httpsocket for a request in an external site to get some information.I have an element to force user put some name:
<?php echo ($form->create('Destination', array ('controller'=>'destinations','action' =>'search')));?> <?php echo $form->input('place', array('label'=> 'Search Location:'));?> <div align="center"> <?php echo ($form->submit('Search', array('div' => false,'class' => 'submitbutton'))); ?> <?php echo($form->end()); ?> </div> now in my controller i have a search function where i want to take the place variable as a parameter so i do: function search($place=null) { App::import('Core', 'HttpSocket'); App::import('Xml'); $HttpSocket = new HttpSocket(); $results = $HttpSocket->get('http://ws.geonames.org/search?', 'q='. $place.'&maxRows=10'); I am doing this '.$place.' to take place as a string but it doesnt work.Any help to this plz? Ty v much! Paulos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---