Re: [fw-general] Why $form-getValue() is not working?

2009-02-08 Thread Deepak Shrestha
On Sun, Feb 8, 2009 at 2:03 AM, A.J. Brown fynw...@gmail.com wrote: Hi Deepak, Can you pastebin both the controller and the form (in seperate pastes)? Attaching would be fine too. I'll help you debug it. -- A.J. Brown web | http://ajbrown.org phone | (937) 660-3969 Hi, here are the

Re: [fw-general] Why $form-getValue() is not working?

2009-02-08 Thread PHPScriptor
your viewscript: ? $this-searchstr ? does that work? try something like this: ?php echo $this-searchstr; ? or ?= $this-searchstr; ? - visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/ -- View this message in context:

Re: [fw-general] Why $form-getValue() is not working?

2009-02-08 Thread Deepak Shrestha
On Sun, Feb 8, 2009 at 9:22 PM, PHPScriptor cont...@phpscriptor.com wrote: your viewscript: ? $this-searchstr ? does that work? try something like this: ?php echo $this-searchstr; ? or ?= $this-searchstr; ? - visit my website at http://www.phpscriptor.com/

Re: [fw-general] Why $form-getValue() is not working?

2009-02-08 Thread PHPScriptor
:-) hahaha, you posted it at your first post, but I think we all looked over it. :handshake: gladd we could help. Greetings - visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/ -- View this message in context:

Re: [fw-general] Why $form-getValue() is not working?

2009-02-07 Thread Deepak Shrestha
plus I noticed something. I tried to enter the string What da Hell and it gives me invalid string error? why I can't type a sentence? what's wrong with the validation? Does this have something to do with the problem? Thank you for your patience. Plus I noticed that it is causing by my

Re: [fw-general] Why $form-getValue() is not working?

2009-02-07 Thread A.J. Brown
Alnum doesn't allow spaces by default. You can change this behaviour by passing in array( allowWhiteSpace = true ) as the 3rd parameter. On Sat, Feb 7, 2009 at 4:07 AM, Deepak Shrestha d88...@gmail.com wrote: plus I noticed something. I tried to enter the string What da Hell and it gives

Re: [fw-general] Why $form-getValue() is not working?

2009-02-07 Thread A.J. Brown
Hi Deepak, Can you pastebin both the controller and the form (in seperate pastes)? Attaching would be fine too. I'll help you debug it. -- A.J. Brown web | http://ajbrown.org phone | (937) 660-3969

[fw-general] Why $form-getValue() is not working?

2009-02-06 Thread Deepak Shrestha
Hi, I am trying to implement a simple search function. For the test purpose I am trying to display the search string in my view. This is how it looks like: my form -- class Form_Search extends Zend_Form { public function init() { //create search text input

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread PHPScriptor
Try this: $this-getPost('qsearch'); Deepak Shrestha wrote: Hi, I am trying to implement a simple search function. For the test purpose I am trying to display the search string in my view. This is how it looks like: my form -- class Form_Search extends

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread Deepak Shrestha
On Fri, Feb 6, 2009 at 7:01 PM, PHPScriptor cont...@phpscriptor.com wrote: Try this: $this-getPost('qsearch'); It gives me: = Application error Exception information: Message: Method getPost does not exist and was not trapped in __call() === Trying

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread PHPScriptor
I'm assuming that if your method getPost does not exist that your $request-isPost() and isValid($request-getPost()) will also not work. Try to do a var_dump of $request-getPost(); and your $request. Deepak Shrestha wrote: On Fri, Feb 6, 2009 at 7:01 PM, PHPScriptor cont...@phpscriptor.com

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread Deepak Shrestha
On Fri, Feb 6, 2009 at 10:43 PM, PHPScriptor cont...@phpscriptor.com wrote: I'm assuming that if your method getPost does not exist that your $request-isPost() and isValid($request-getPost()) will also not work. Try to do a var_dump of $request-getPost(); and your $request. Hi, I agree with

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread PHPScriptor
It's not the best way but you can do it like this maybe: $data = $request-getPost(); echo $data['qsearch]; Just to help you further for this moment... I'll have a closer look later on... Deepak Shrestha wrote: On Fri, Feb 6, 2009 at 10:43 PM, PHPScriptor cont...@phpscriptor.com wrote:

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread A.J. Brown
Hi, It looks like you're not setting post as the method. $form-setMethod( 'post' ); $this-view-form = $form; On Fri, Feb 6, 2009 at 9:22 AM, PHPScriptor cont...@phpscriptor.com wrote: It's not the best way but you can do it like this maybe: $data = $request-getPost(); echo

Re: [fw-general] Why $form-getValue() is not working?

2009-02-06 Thread Deepak Shrestha
Hi, It looks like you're not setting post as the method. $form-setMethod( 'post' ); $this-view-form = $form; The form's method is set to post now (sorry I forgot; my bad) but I am still getting the same result. It's not the best way but you can do it like this maybe: $data =