Re: $_POST is populated with the form data, but $this->data is always empty

2010-12-01 Thread John Andersen
Please change your code part from: } else { pr('this->data not set!'); } to } else { pr('this->data not set!'); pr($this->data); } So that we may be sure that $this->data is not set with anything Enjoy, John On

Re: $_POST is populated with the form data, but $this->data is always empty

2010-12-01 Thread Raisen
/users/view/.  When I submit it and check $_POST and > $this->data at the very beginning of AppController->beforeFilter(), > the form data appears in the $_POST array but $this->data does not > have any data.  In fact, $this->data is not even set by Cake! > > The Auth component

Re: $_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread amfriedman
> HTH, > Nick > > On Nov 29, 11:56 am, amfriedman wrote: > > > > > > > > > Hey folks > > > This is a very strange issue indeed, and at its root it is NOT related > > to this post that declares a similar > > symptom:http://groups.goo

Re: $_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread nurvzy
am, amfriedman wrote: > Hey folks > > This is a very strange issue indeed, and at its root it is NOT related > to this post that declares a similar > symptom:http://groups.google.com/group/cake-php/browse_thread/thread/840eaa08... > > I have a form in /users/view/.  When I sub

$_POST is populated with the form data, but $this->data is always empty

2010-11-29 Thread amfriedman
Hey folks This is a very strange issue indeed, and at its root it is NOT related to this post that declares a similar symptom: http://groups.google.com/group/cake-php/browse_thread/thread/840eaa08732904a1/6b214b69ad0980d4?lnk=gst&q=$_POST#6b214b69ad0980d4 I have a form in /users/view/. Wh

Re: $_POST populated, but not $this->data

2010-10-18 Thread Sarpidon
en though it's set in $_POST fine.  Here's debug from > $_POST (first array) and $this->data: > > Array > ( >     [_method] => POST >     [data] => Array >         ( >             [User] => Array >                 ( >                    

Re: $_POST populated, but not $this->data

2010-10-18 Thread tekomp
some reason, even though it's set in $_POST fine.  Here's debug from > $_POST (first array) and $this->data: > > Array > ( >     [_method] => POST >     [data] => Array >         ( >             [User] => Array >                 ( >        

$_POST populated, but not $this->data

2010-10-18 Thread tekomp
When trying to login to my app using auth component and form helper in 1.3.4, the password value is not being populated in $this->data for some reason, even though it's set in $_POST fine. Here's debug from $_POST (first array) and $this->data: Array ( [_method] => POST

Issues grabbing $_POST information

2010-09-28 Thread David C.
ID in a request header on my rest client (tried many of them) but nothing shows in the $_POST variable. I've done a few print_r() calls for that variable in various locations to see what pops up (pre-auth and post-auth) but nothing seems to be passed. Am I looking in the wrong location for inform

Re: $_POST and Auth encryption

2009-07-21 Thread DatacenterHellas
This is the answer ! :) Thanks a lot :) --~--~-~--~~~---~--~~ 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 c

Re: $_POST and Auth encryption

2009-07-21 Thread Piotr Kilczuk
Hello, > I need your help for another one time :) > > I'm creating an Application with CakePHP and ExtJS. > > The problem that I have is that the ExtJS send the Data to CakePHP > with the $_POST http methos and when I save new users to my database > the password is n

$_POST and Auth encryption

2009-07-21 Thread DatacenterHellas
Hello all :) I need your help for another one time :) I'm creating an Application with CakePHP and ExtJS. The problem that I have is that the ExtJS send the Data to CakePHP with the $_POST http methos and when I save new users to my database the password is not hashed with the default

Re: $_POST

2009-07-17 Thread mario vallejo
7 am, mario vallejo wrote: >> > Hello and thank you for your time and attention. I am building a >> > Facebook app and I want to use CakePHP to build it. The problem is the >> > following >> > >> > I have tried to translate this into cake to no avail: >>

Re: $_POST

2009-07-17 Thread Carlos Lavin
nt_r($_GET); > echo ''; > exit; > > > On Jul 16, 9:57 am, mario vallejo wrote: > > Hello and thank you for your time and attention. I am building a > > Facebook app and I want to use CakePHP to build it. The problem is the > > following > > > >

Re: $_POST

2009-07-17 Thread womble
ention. I am building a > Facebook app and I want to use CakePHP to build it. The problem is the > following > > I have tried to translate this into cake to no avail: > > $is_tab = isset($_POST['fb_sig_in_profile_tab']); > > if( !$is_tab ) $user = $fb->require_login(); >

Re: $_POST

2009-07-16 Thread Travis L
ntinue to help . > > On Jul 16, 4:57 am, mario vallejo wrote: > > > Hello and thank you for your time and attention. I am building a > > Facebook app and I want to use CakePHP to build it. The problem is the > > following > > > I have tried to translate thi

Re: $_POST

2009-07-16 Thread mario vallejo
k app and I want to use CakePHP to build it. The problem is the >> following >> >> I have tried to translate this into cake to no avail: >> >> $is_tab = isset($_POST['fb_sig_in_profile_tab']); >> >> if( !$is_tab ) $user = $fb->require_login(); >&g

Re: $_POST

2009-07-16 Thread cbhan
thank you for your time and attention. I am building a > Facebook app and I want to use CakePHP to build it. The problem is the > following > > I have tried to translate this into cake to no avail: > > $is_tab = isset($_POST['fb_sig_in_profile_tab']); > > if( !$is_

$_POST

2009-07-15 Thread mario vallejo
Hello and thank you for your time and attention. I am building a Facebook app and I want to use CakePHP to build it. The problem is the following I have tried to translate this into cake to no avail: $is_tab = isset($_POST['fb_sig_in_profile_tab']); if( !$is_tab ) $user = $fb->

Re: Turning $_GET/$_POST into named params

2009-03-11 Thread AD7six
On Mar 11, 1:58 am, Casey Stark wrote: > I've been searching for the best way to do this for a while and I > agree with Martin now. I really wish cake had a more elegant solution, > but this one is definitely the cleanest and fastest. What is hard about doing: function index() { if ($this->da

Re: Turning $_GET/$_POST into named params

2009-03-10 Thread Casey Stark
        $this->redirect('search/name:'.$this->params['url']['name']); >         } > > } > > On Feb 11, 9:40 am, Miles J wrote: > > > So I have a search/browse system thats pluggedintopagination. > > Everything works fine as a $_POST, th

Re: Turning $_GET/$_POST into named params

2009-02-12 Thread Miles J
Would I need to add on to it for each get variable in the query? &name=asds&age=&ad=34234234 etc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegr

Re: Turning $_GET/$_POST into named params

2009-02-12 Thread grigri
RewriteCond %{QUERY_STRING} ^q=(.*)$ RewriteRule ^(products/search(/[^/]+)*)/?$ /$1/q:%1? [R=301,L] Will rewrite (for example) `/products/search/page:2/?q=bacon` to `/ products/search/page:2/q:bacon` hth grigri On Feb 11, 9:08 pm, Miles J wrote: > Anyone have an idea how to do the .hta

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
Anyone have an idea how to do the .htaccess? --~--~-~--~~~---~--~~ 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 t

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread grigri
ything works fine as a $_POST, the data is returned and paginated > BUT the second I resort the results using the pagination, I lose all > the search queries/terms. > > How can I turn $_GET or $_POST into named params so that they are > continually

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Son Dat Giang
Giang Son Dat Mobile: +84 988114164 Email giangson...@gmail.com, giangson...@yahoo.com On Wed, Feb 11, 2009 at 12:40 AM, Miles J wrote: > > So I have a search/browse system thats plugged into pagination. > Everything works fine as a $_POST, the data is returned and paginated > BUT the

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
@majina - I know that, but I need to CREATE the named params from the get or post. @martin - Yeah thats what I was thinking, just wondering if theres another way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread majna
tem thats plugged into pagination. > Everything works fine as a $_POST, the data is returned and paginated > BUT the second I resort the results using the pagination, I lose all > the search queries/terms. > > How can I turn $_GET or $_POST into named params so that they a

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Martin Westin
On Feb 11, 9:40 am, Miles J wrote: > So I have a search/browse system thats plugged into pagination. > Everything works fine as a $_POST, the data is returned and paginated > BUT the second I resort the results using the pagination, I lose all > the search queries/terms. > > How

Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
So I have a search/browse system thats plugged into pagination. Everything works fine as a $_POST, the data is returned and paginated BUT the second I resort the results using the pagination, I lose all the search queries/terms. How can I turn $_GET or $_POST into named params so that they are

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
Martin, you were spot on! For my submit buttons I was adding a method: 'post' parameter and for all other links I wasn't. Turns out that ModalBox will carry apply GET as default (if no method parameter specified) but once you do specify a method it will continue to use it. Now that I added meth

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread Martin Westin
In that case it sounds to me like the problem might be in the javascript, not on the server-side. It is at least not a general bug in CakePHP (for example I have several forms submitted over and over via ajax working fine). Are you sure that when you go from "index" to "add" in your modal that it

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
Arggh ... same problem when using redirect! 1. Open my modal window which runs 'index' action 2. Click on 'Add' link which runs 'add' action and displays the form 3. Fill in and submit the form which runs 'add' action, saves the data and redirects to 'index' action 4. Click on 'Add' link which

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
Arggh ... same problem when using redirect! 1. Open my modal window which runs 'index' action 2. Click on 'Add' link which runs 'add' action and displays the form 3. Fill in and submit the form which runs 'add' action, saves the data and redirects to 'index' action 4. Click on 'Add' link which

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
Martin, Looks like I've been banging my head against a brick wall for nothing! Your advice to simply use redirect(), and my semi belief that I couldn't, made me search the group for 'ajax redirect' and I came across the following post http://groups.google.com/group/cake-php/browse_thread/thread

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
Thanks for your reply Martin, but a redirect() would create a new http request (loading a whole new page) rather than an ajax call to update the content within my modal window. On normal pages I do use redirect () after a successful form post, it's just when working with ajax calls that I need to

Re: How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread Martin Westin
edit again $this->data gets repopulated with the > previously posted data and rather than display the form the add/edit > action processes the request with the previous data. > > I have tried unsset($this->data) which is pointless as my index action > resets this anyway, and I

How does Cake populate $this->data with a submitted form's $_POST variables?

2009-01-14 Thread WebbedIT
ed unsset($_POST) to no avail. I thought that each Ajax request was unique so I am confused as to how previous POST data is available in subsequent add/edit requests?!? Can anyone shed light on this? For reference I am using ModalBox using a javascript call from onclick events as follows: $h

Re: Using _POST array to route to correct controller/action

2008-11-03 Thread Marcelo Andrade
27;s > routes. > > However, this is where I have the disconnect. The external website > that calls my cake code will alway just call www.example.net/posts. > It will never call www.example.net/posts/add/5, www.example.net/posts/add, > or www.example.net/posts/5. It would store the acti

Re: Using _POST array to route to correct controller/action

2008-11-03 Thread Todd M
.net/posts/add/5,www.example.net/posts/add, > orwww.example.net/posts/5. It would store the action & id in the > $_POST array. I believe the only way that I can do this is to have the > posts->index() (default controller action) and parse the $_POSTS and > then recall the dispatche

Re: Using _POST array to route to correct controller/action

2008-11-03 Thread Todd M
d store the action & id in the $_POST array. I believe the only way that I can do this is to have the posts->index() (default controller action) and parse the $_POSTS and then recall the dispatcher with a posts/add/5 as url. Being new with this framework. I just wanted to know if I'

Re: Using _POST array to route to correct controller/action

2008-11-03 Thread Marcelo Andrade
On Mon, Nov 3, 2008 at 10:09 AM, Todd M <[EMAIL PROTECTED]> wrote: > > I'm a newbie here, but I think I understand the whole url/controller/ > action/parm1/parm2 routing convention. However is there a way that > you use the _POST array to rout to the correct action/parm&#

Using _POST array to route to correct controller/action

2008-11-03 Thread Todd M
I'm a newbie here, but I think I understand the whole url/controller/ action/parm1/parm2 routing convention. However is there a way that you use the _POST array to rout to the correct action/parm's For instance, I'll always be using the www.example.net/my_controller, which

Re: Large $_POST variables crashing Controller startup

2008-08-28 Thread neverlosty
Hi David, I checked the post_max_size, it says its 8M The wierd thing is, if I look at my $_POST any time before that line in controller.php its fine. The post is there in its entirety and I can access it. It seemed to be specific to cake's bootstrap/startup process. cheers, Tony. On A

Re: Large $_POST variables crashing Controller startup

2008-08-27 Thread David
Hi there Could it be something to do with your php.ini's post_max_size directive value? David On Aug 27, 4:55 pm, neverlosty <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having an issue where I'm trying to post a very large (1M) string > through http $_POST

Large $_POST variables crashing Controller startup

2008-08-27 Thread neverlosty
Hi, I'm having an issue where I'm trying to post a very large (1M) string through http $_POST For some reason when cake is starting up, in cake/libs/controller/controller.php [line 387] $this->Component->init($this); After that it just dies. When I try to debug the Component.p

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-27 Thread Grant Cox
FF2 and WinXP here, and it is working fine - repeated submits (new or same data) always comes through. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-27 Thread Claudia
ith a random value, and adding a random number as a parameter > to the end of my URL. I'm still getting the same outcome. What's > weird, even if $_POST isn't being populated, I can refresh Firefox, > and the popup box that says "The page you are trying to view contai

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
I'm not sure what the trick is. I tried sticking in my , adding the hidden field with a random value, and adding a random number as a parameter to the end of my URL. I'm still getting the same outcome. What's weird, even if $_POST isn't being populated, I can refresh Firefo

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
Okay, I tried using Galeon a few more times. 1) Enter "abc" / "def" 2) Submit 3) Page draws with post 4) Sumbit again. 5) Page draws with no post (clears fields) 6) Enter "abc" / "def" 7) Submit 8) Page draws with post 9) add "d" to the end of "abc" 10) Submit again 11) Page draws with post So m

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
Wierd. > > Jeff > > On Sep 26, 3:59 pm, Jon Hinson <[EMAIL PROTECTED]> wrote: > > > How many times did you try submitting the form? This is very odd. What > > browser are you using? I tried to reproduce the problem on my iPhone > > using Safari, and it took many

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
ore submittions, but out of about 20 > submittions, $_POST was not populated 3 times. I know that doesn't > sound like much, but when it's almost EVERY time after the second > submission with IE 6 and Firefox, it's very frustrating and I want to > know what I'm doing w

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
How many times did you try submitting the form? This is very odd. What browser are you using? I tried to reproduce the problem on my iPhone using Safari, and it took many more submittions, but out of about 20 submittions, $_POST was not populated 3 times. I know that doesn't sound like much

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
>From what I can tell Jon, $_POST populated as expected. It was only empty when I loaded the page the first time. Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
When I try to submit any forms multiple times in a row(if I've entered incorrect login information, for example), after the first or second submission, it's as if I just loaded the page without my form posting. I broke my code down to simplify it and try to find the problem, but I'm having no luck

Re: Decode GWT post into $_POST

2007-06-27 Thread nate
No. http://us.php.net/json_decode On Jun 27, 2:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Data is escaped properly when it is inserted into the db which > > prevents sql injection. You then escape output so to remove unexpected/ > > malicious output. > > Is there any chance of mal

Re: Decode GWT post into $_POST

2007-06-27 Thread [EMAIL PROTECTED]
> Data is escaped properly when it is inserted into the db which > prevents sql injection. You then escape output so to remove unexpected/ > malicious output. Is there any chance of malicious PHP code inserted as input that would get executed during the massaging of data to get it into $this->dat

Re: Decode GWT post into $_POST

2007-06-27 Thread gwoo
Data is escaped properly when it is inserted into the db which prevents sql injection. You then escape output so to remove unexpected/ malicious output. 1. function beforeFilter() { 2. if(isset($this->params['form']['json'])) { 3. $this->data = json_decode($this->params['form'

Re: Decode GWT post into $_POST

2007-06-27 Thread [EMAIL PROTECTED]
> you dont need to sanitize. I can see the beforeFilter being about 4 > lines of code max. Seems pretty painless to me 1) Why don't I need to sanitize. I don't trust this data as it is coming from a form. 2) Would you mind posting these "4 lines of code" or pseudo code? --~--~-~--~~

Re: Decode GWT post into $_POST

2007-06-27 Thread gwoo
you dont need to sanitize. I can see the beforeFilter being about 4 lines of code max. Seems pretty painless to me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Decode GWT post into $_POST

2007-06-27 Thread [EMAIL PROTECTED]
Hi, I'm considering using GWT for my UI with my existing cakephp backend. To communicate with the server I encode all my post variables into one JSON variable and perform an asynchronous post. I would then like cakephp to decode the JSON and assign it to $_POST before it does anything else.

Re: $_POST returns empty value, but mod_rewrite working.

2006-09-16 Thread Andris Paikens
I knew about this way but as I didn't use it, was forgotten about it. Without .htaccess files and with "define ('BASE_URL', env('SCRIPT_NAME'));" everything works just fine. Thanks, at least something now is working. On 16/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Why don't you try

Re: $_POST returns empty value, but mod_rewrite working.

2006-09-16 Thread [EMAIL PROTECTED]
Why don't you try to take off .htaccess files and change core.php configuration to use the index.php directly. See if that works that way without mod_rewrite and then you will know for sure. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: $_POST returns empty value, but mod_rewrite working.

2006-09-16 Thread Andris Paikens
r and mod_rewrite is not ok. I'll let know what was solution. Andris On 16/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > If the $_POST isn't getting set by a form, then that almost seems like > an webserver issue. Now, if the $_POST wasn't being put into C

Re: $_POST returns empty value, but mod_rewrite working.

2006-09-16 Thread [EMAIL PROTECTED]
If the $_POST isn't getting set by a form, then that almost seems like an webserver issue. Now, if the $_POST wasn't being put into CakePHP's $this->params['form'] it would be a CakePHP thing. I have had problems if I didn't explicitly put the method="post&

$_POST returns empty value, but mod_rewrite working.

2006-09-16 Thread Andris Paikens
Helo there, I've been playing with CakePhp for some time and so far it was easy and great. But now this problem arises - project is moved to production server, to which i have only limited ftp access and after moving forms return empty $_POST array. mod_rewrite, as I guess, is working -