With symfony, it automatically takes the $_GET and $_POST parameters from the request and cleans them for you (for security) and makes them available through a different method. To get the $_GET or $_POST parameters you should use $request->getParameter(). For example, using your url of module/phpPage?qId=138;:
public function executePhpPage(sfWebRequest $request) { $qId = $request->getParameter('qId); } In addition this is a VERY basic core function that symfony provides. I am slightly concerned that if you need to ask this question you should perhaps spend a bit more time getting to know symfony. My suggestion is to read through this book to get a good overview of how everything works together in the symfony framework: http://www.symfony-project.org/gentle-introduction/1_4/en/ On Tue, Oct 19, 2010 at 2:43 AM, Parijat Kalia <kaliapari...@gmail.com>wrote: > Hello people... > > Not sure I am grasping this here, but it is php related and not HTML > related. > > I have a web template, that retrieves a parameter from the URL, > essentially, it goes something like this... > > > module/phpPage?qId=138; > > based on this id, certain SQL queries are executed in the action and the > corresponding data is loaded into the templates > > The page has a delete button, so essentially a form, and it is expected to > post back to itself. > > SO now in the $this->getRequest()->isMethod('post') > > I try and retrieve the parameter qId from the URL...like this: > > $qId = $_GET['qId']; > > However, it does not retain the parameter like it should, or maybe it > should not... > > Can anyone explain why this happens, and what is the remedy for it? > > Thanks to ya'all! > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en