Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Donovan Brooke
Jônatas Zechim wrote: Hi.. You need to use $_FILES ( http://php.net/manual/pt_BR/reserved.variables.files.php) Regards, Jônatas Zechim Thanks guys. Donovan -- D Brooke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Steve Staples
On Tue, 2011-08-02 at 10:04 -0500, Donovan Brooke wrote: > Hello!, > > I must not be understanding something as I would expect 'f_file' > to show up in the print_r below.: > > ---form-- > > > > > > > ---endform-- > > --index.php-- > > --/index.php-- > > > > > The result I

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Richard Quadling
On 2 August 2011 16:11, Richard Quadling wrote: > On 2 August 2011 16:04, Donovan Brooke wrote: >> Hello!, >> >> I must not be understanding something as I would expect 'f_file' >> to show up in the print_r below.: >> >> ---form-- >> >>   >>   >>   >>   >> >> ---endform-- >> >> --index.php-- >>

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Richard Quadling
On 2 August 2011 16:04, Donovan Brooke wrote: > Hello!, > > I must not be understanding something as I would expect 'f_file' > to show up in the print_r below.: > > ---form-- > >   >   >   >   > > ---endform-- > > --index.php-- > > --/index.php-- > > > > > The result I get is: > >

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Florian Lemaitre
Le 02/08/2011 17:04, Donovan Brooke a écrit : Hello!, I must not be understanding something as I would expect 'f_file' to show up in the print_r below.: --index.php-- --/index.php-- try *: * ;)

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Jônatas Zechim
Hi.. You need to use $_FILES ( http://php.net/manual/pt_BR/reserved.variables.files.php) Regards, Jônatas Zechim PHP & jQuery specialist http://zechim.com mob +55 11 7053 2239 skype ID zechim On 2 August 2011 12:04, Donovan Brooke wrote: > Hello!, > > I must not be understanding something a

Re: [PHP] $_POST vars

2011-04-14 Thread Jim Giner
Guys - the problem has been solved. Give it a rest. (sent only to the list) (remainder deleted for the benefit of all :) ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST vars

2011-04-14 Thread Stuart Dallas
On Thursday, 14 April 2011 at 23:08, Nathan Nobbe wrote: On Thu, Apr 14, 2011 at 2:53 AM, Stuart Dallas wrote: > > On Thursday, 14 April 2011 at 07:11, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > > > > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote:

Re: [PHP] $_POST vars

2011-04-14 Thread Nathan Nobbe
On Thu, Apr 14, 2011 at 2:53 AM, Stuart Dallas wrote: > On Thursday, 14 April 2011 at 07:11, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > > I never make any assumptions about the source of any data

Re: [PHP] $_POST vars

2011-04-14 Thread Stuart Dallas
On Thursday, 14 April 2011 at 07:11, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > I never make any assumptions about the source of any data when I'm > > developing software, whether in PHP or not. Retur

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > > > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas > w

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe w

Re: [PHP] $_POST vars

2011-04-13 Thread Kirk . Johnson
Nathan Nobbe wrote on 04/13/2011 12:47:11 PM: [much snippage] > no, it's actually a better practice. users are expected to populate arrays > they create. the $GLOBALS array is expected to be populated by user > scripts. The $_POST array is expected to be populated by PHP. by the time > you

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
PHP then is Truly an amazing and powerful language. I can expand the contents of the array $_POST by simply assigning a separate arry to it. Obviously if I have a duplicate element-name in my array it will override the $_POST element but that's my problem. "Stuart Dallas" wrote in message ne

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > > > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner < > jim.g

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner > > wrote: > > > > > > > Can one create a set of $_POST vars within a sc

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
tp://3ft9.com/ > - Original Message - > From: "Stuart Dallas" > Newsgroups: php.general > To: "Jim Giner" > Cc: "PHP General" > Sent: Wednesday, April 13, 2011 1:59 PM > Subject: Re: [PHP] $_POST vars > > > > > > No

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
Shrug, it's called reply-all and it's been brought up here before :) -nathan On Wed, Apr 13, 2011 at 12:25 PM, Jim Giner wrote: > No need to email me AND send to the list. Is that the standard practice on > this forum? Not encountered it before. > >

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
No need to email me AND send to the list. Is that the standard practice on this forum? Not encountered it before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner >wrote: > > > > > Can one create a set of $_POST vars within a script or is that not > do-able? > > > My display portion of my script u

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
When you say "assign that array to $_POST" do you mean $_POST = $qrslt; Not sure about this "assigning an array" thing. - Original Message - From: "Stuart Dallas" Newsgroups: php.general To: "Jim Giner" Cc: "PHP General" Sent: W

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner wrote: > > > Can one create a set of $_POST vars within a script or is that not do-able? > > My display portion of my script utilizes the POST array to supply values to > > my input screen - this

RE: [PHP] $_POST vars

2011-04-13 Thread Eli Orr
Hi Jim, Sure you can create set of et of $_POST vars : e.g. So that admin_code var is passed to myphpaction.php as post and shall be access there via $_POST["admin_code "]; However, note that in PHP all the output buffer is flushed actually, ONLY after the script execution is termina

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:56, Jim Giner wrote: And that includes adding entirely new elements in that array? Yes, it's a standard array. It's not special other than being a superglobal. > Do you have any suggestion on how to get the results of a query into POST > easily or is it simply a

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner wrote: > Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any fol

Re: [PHP] $_POST vars

2011-04-13 Thread Adam Richardson
On Wed, Apr 13, 2011 at 1:49 PM, Jim Giner wrote: > Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any foll

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:49, Jim Giner wrote: Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any

Re: [PHP] $_POST variable

2011-03-12 Thread tedd
At 6:07 PM -0600 3/12/11, Shawn McKenzie wrote: On 03/12/2011 10:37 AM, tedd wrote: > Here's a demo: > http://php1.net/b/form-radio1/ > Don't make it more complicated than it needs be. My point exactly! So long as the name of the name[] part is the same they will be treated as the same

Re: [PHP] $_POST variable

2011-03-12 Thread Shawn McKenzie
On 03/12/2011 10:37 AM, tedd wrote: > At 9:28 PM +0200 3/11/11, Danny wrote: >> Hi guys, >> >> I have a form that has a long list of radio-bottons inside of it. The >> radio-buttons are dynamically created via php and MySQL. >> >> Here is an example of one of the radio buttons: >> >> > ?>" value="0

Re: [PHP] $_POST variable

2011-03-12 Thread tedd
At 9:28 PM +0200 3/11/11, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: ; ?>" value="0"> ; ?>" value="1"> Now, when I submit this form to ano

Re: [PHP] $_POST variable

2011-03-11 Thread richard gray
On 11/03/2011 20:28, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: " value="0"> " value="1"> Now, when I submit this form to another page fo

Re: [PHP] $_POST variable

2011-03-11 Thread Steve Staples
On Fri, 2011-03-11 at 21:28 +0200, Danny wrote: > Hi guys, > > I have a form that has a long list of radio-bottons inside of it. The > radio-buttons are dynamically created via php and MySQL. > > Here is an example of one of the radio buttons: > > " > value="0"> > " > value="1"> > > Now, when

Re: [PHP] $_POST variable

2011-03-11 Thread Daniel Brown
On Fri, Mar 11, 2011 at 14:28, Danny wrote: [snip!] > > Now, when I submit this form to another page for processing, how would I > "catch" > the above radio-button's $_POST name since I do not know the name, only that > it > starts with "radio_" ? One method is a foreach() loop. $v) {

Re: [PHP] $_POST issues

2010-12-01 Thread Steve Staples
On Wed, 2010-12-01 at 20:18 +0400, Nadim Attari wrote: > On 12/01/2010 07:18 PM, Jay Blanchard wrote: > > [snip] > >>> If I just put only this piece of code: > >>> > >>> >>> var_dump($_POST); > >>> ?> > >>> > >>> i get nothing. > > [/snip] > > > > Where are you putting this var_dump? > > > >

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
This thread is a really good example of how difficult it can be to both explain and understand a problem. The original poster might want to restate the question from scratch with a more explicit and complete example. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] $_POST issues

2010-12-01 Thread Jay Blanchard
[snip] > Where are you putting this var_dump? > > That's the only code on the page. Otherwise, the other codes - header(), print, etc. are on the page. [/snip] var_dumping the POST on the same page from which the data originates will not yield anything. Page A - contains data to be posted. Page

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 14:50, Bundhoo M Nadim wrote: > Hello, > > Can someone explain me what this piece of code basically does ? > >    header("Expires: " . gmdate("D, d M Y H:i:s", time() + (0*60)) . "GMT"); >    header("Pragma: no-cache"); >    print "REDIRECT=http://www.domaine.com/page.php?";; >

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
The function http_build_query() is turning your $_POST array into a query string ($_GET), so the answer to this really depends where you're trying to dump the array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Nadim Attari
On 12/01/2010 07:18 PM, Jay Blanchard wrote: [snip] If I just put only this piece of code: i get nothing. [/snip] Where are you putting this var_dump? That's the only code on the page. Otherwise, the other codes - header(), print, etc. are on the page. nadim -- PHP General Mailing L

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 15:18, Marc Guay wrote: >>>    var_dump($_POST); ?> > > Where exactly are you putting this line? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If a script is ran via a url like ... http://www.site.co

RE: [PHP] $_POST issues

2010-12-01 Thread Jay Blanchard
[snip] >> If I just put only this piece of code: >> >> > var_dump($_POST); >> ?> >> >> i get nothing. [/snip] Where are you putting this var_dump? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
>>> >>    var_dump($_POST); >>> ?> Where exactly are you putting this line? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Bundhoo M Nadim
On 01/12/2010 19:01, Daniel P. Brown wrote: On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim wrote: If I just put only this piece of code: i get nothing. But the above codes is successfully redirecting me to page.php with a properly constructed query string -> which means that $_POST was never

Re: [PHP] $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim wrote: > > If I just put only this piece of code: > >    var_dump($_POST); > ?> > > i get nothing. But the above codes is successfully redirecting me to > page.php with a properly constructed query string -> which means that $_POST > was never empty.

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 14:50, Bundhoo M Nadim wrote: > Hello, > > Can someone explain me what this piece of code basically does ? > >    header("Expires: " . gmdate("D, d M Y H:i:s", time() + (0*60)) . "GMT"); >    header("Pragma: no-cache"); >    print "REDIRECT=http://www.domaine.com/page.php?";; >

Re: [PHP] $_POST vs $_REQUEST

2010-02-25 Thread Jochem Maas
Op 2/24/10 11:18 AM, Ashley Sheridan schreef: > On Wed, 2010-02-24 at 07:55 +, Jochem Maas wrote: > >> Op 2/22/10 10:49 PM, John Black schreef: >>> On 02/22/2010 11:42 PM, Michael Shadle wrote: The difference here is you can at least have some control over the data and expect it in a

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 12:34 +0100, Rene Veerman wrote: > sry i gotta disagree. > > a function that queries $_POST/$_GET first and then $_COOKIE seems > much wiser to me. > it consolidates all logic in the script, and making that logic obvious > by syntax, rather than relying on functionality bein

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Rene Veerman
sry i gotta disagree. a function that queries $_POST/$_GET first and then $_COOKIE seems much wiser to me. it consolidates all logic in the script, and making that logic obvious by syntax, rather than relying on functionality being determined by php.ini, which could well cause a new developer to l

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 07:55 +, Jochem Maas wrote: > Op 2/22/10 10:49 PM, John Black schreef: > > On 02/22/2010 11:42 PM, Michael Shadle wrote: > >> The difference here is you can at least have some control over the data > >> and expect it in a certain fashion. Also the behavior of cookies vs.

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Jochem Maas
Op 2/22/10 10:49 PM, John Black schreef: > On 02/22/2010 11:42 PM, Michael Shadle wrote: >> The difference here is you can at least have some control over the data >> and expect it in a certain fashion. Also the behavior of cookies vs. get >> vs. post are different (cookies have length and expirati

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Jochem Maas
Op 2/23/10 10:27 AM, Ashley Sheridan schreef: > On Tue, 2010-02-23 at 09:19 +, Richard wrote: > >> Hi, >> >> Well people better than me (how is that possible?!) have said that >> $_REQUEST has the potential to open your app up to security >> vulnerabilities, and that it should be avoided becau

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread tedd
At 11:07 PM +0100 2/22/10, John Black wrote: On 02/22/2010 10:37 PM, Michael Shadle wrote: On Mon, Feb 22, 2010 at 1:30 PM, David Murphy wrote: Richard, The use of $_REQUEST it no more a security hole than $_GET or $_REQUEST, they should ALL be treats as bad data until normalized and sanitized

RE: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Bob McConnell
From: Rene Veerman [mailto:rene7...@gmail.com] > On Mon, Feb 22, 2010 at 9:39 PM, Slack-Moehrle >> >> Single quotes is best, correct to prevent sql injection? > > sql injection fixing is an evolving art, but you can start by pushing > all variables that can be changed by end-users going into a da

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 09:19 +, Richard wrote: > Hi, > > Well people better than me (how is that possible?!) have said that > $_REQUEST has the potential to open your app up to security > vulnerabilities, and that it should be avoided because of that. Here's > a post from Stephan Esser about i

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Richard
Hi, Well people better than me (how is that possible?!) have said that $_REQUEST has the potential to open your app up to security vulnerabilities, and that it should be avoided because of that. Here's a post from Stephan Esser about it on the PHP-Internals list: http://www.mail-archive.com/inter

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Ashley Sheridan
On Mon, 2010-02-22 at 23:49 +0100, John Black wrote: > On 02/22/2010 11:42 PM, Michael Shadle wrote: > > The difference here is you can at least have some control over the data > > and expect it in a certain fashion. Also the behavior of cookies vs. get > > vs. post are different (cookies have len

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread John Black
On 02/22/2010 11:42 PM, Michael Shadle wrote: The difference here is you can at least have some control over the data and expect it in a certain fashion. Also the behavior of cookies vs. get vs. post are different (cookies have length and expiration limits, get has length limits, post has server

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Jochem Maas
Op 2/22/10 8:39 PM, Slack-Moehrle schreef: > Hi All, > > I have Forms that I submit for processing. I have seen examples of people > using either $_POST or $_REQUEST. > > When would I choose one over the other? use $_POST, $_REQUEST is normally an amalgam of GET, POST and COOKIE - as such usin

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Michael Shadle
The difference here is you can at least have some control over the data and expect it in a certain fashion. Also the behavior of cookies vs. get vs. post are different (cookies have length and expiration limits, get has length limits, post has server confgured limits) Like I said a properly

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Daniel Egeberg
On Mon, Feb 22, 2010 at 22:37, Michael Shadle wrote: > On Mon, Feb 22, 2010 at 1:30 PM, David Murphy wrote: >> Richard, >> >> >> The use of $_REQUEST it no more a security hole than $_GET or $_REQUEST, >> they should ALL be treats as bad data until normalized and sanitized.  The >> claim that it

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread John Black
On 02/22/2010 11:17 PM, Michael Shadle wrote: "Secure" might be the wrong term here. As you can easily change GET to POST and vice-versa and send any cookies you like, this is why I tried to revise my statement and quantify it better... in a properly coded app it doesn't present much issue. Howev

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Andrew Ballard
On Mon, Feb 22, 2010 at 5:02 PM, Slack-Moehrle wrote: > John, > >>>Then if you use a MySQL database you would escape the string like this >>>$tmp = mysql_real_escape_string($_REQUEST['yyy']); > > >>>mysql_real_escape_string() protect from SQL injection by escaping your >>>string according to what

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Michael Shadle
On Mon, Feb 22, 2010 at 2:07 PM, John Black wrote: > And how is this more secure? I can create a cookie, send post or get on my > client machine and send anything I want to the server. Just because you are > getting a cookie does not mean that you created it :) > > So you might as well use reques

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread John Black
On 02/22/2010 10:37 PM, Michael Shadle wrote: On Mon, Feb 22, 2010 at 1:30 PM, David Murphy wrote: Richard, The use of $_REQUEST it no more a security hole than $_GET or $_REQUEST, they should ALL be treats as bad data until normalized and sanitized. The claim that it opens a security hole is

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Slack-Moehrle
John, >>Then if you use a MySQL database you would escape the string like this >>$tmp = mysql_real_escape_string($_REQUEST['yyy']); >>mysql_real_escape_string() protect from SQL injection by escaping your >>string according to what your charset requires. Good point, I should be doing that. But

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Michael Shadle
On Mon, Feb 22, 2010 at 1:30 PM, David Murphy wrote: > Richard, > > > The use of $_REQUEST it no more a security hole than $_GET or $_REQUEST, > they should ALL be treats as bad data until normalized and sanitized.  The > claim that it opens a security hole  is  just false, that’s like saying PHP

RE: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread David Murphy
$_REQUEST. David Murphy -Original Message- From: richard.he...@gmail.com [mailto:richard.he...@gmail.com] On Behalf Of Richard Sent: Monday, February 22, 2010 3:03 PM To: Joseph Thayne Cc: Slack-Moehrle; php-general Subject: Re: [PHP] $_POST vs $_REQUEST Hi, > I am not sure what

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Michael Shadle
On Mon, Feb 22, 2010 at 12:55 PM, Joseph Thayne wrote: > I am not sure what the security issues are you are referring to as the > $_REQUEST superglobal contains both $_GET and $_POST values.  Could you > expound on that?  Thanks. $_REQUEST opens you up to POST/GET values overriding cookie values

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Dotan Cohen
> I have Forms that I submit for processing. I have seen examples of people > using either $_POST or $_REQUEST. > Look at this example: Now what do you thing $_REQUEST will return? You had better not even think. Just use $_POST or $_GET as you _know_ what they will return. Don't forget, the

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Kim Madsen
Hi Slack-Moehrle Slack-Moehrle wrote on 22/02/2010 21:39: Hi All, I have Forms that I submit for processing. I have seen examples of people using either $_POST or $_REQUEST. When would I choose one over the other? $_REQUEST['test'] is true on both $_GET['test'] and $_POST['test'] I use it

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Richard
Hi, > I am not sure what the security issues are you are referring to as the > $_REQUEST superglobal contains both $_GET and $_POST values.  Could you > expound on that?  Thanks. Not really, do a search. -- Richard Heyes HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 20th Februa

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Rene Veerman
> i'd expect without quotes to query a define('j_orderValue','??').. oh, and that, if not defined, defaults to the string 'j_orderValue'. So while your $_POST[] with or without quotes will "do the same", use single-quotes anyway because it's "the right thing to do" ;) -- PHP General Mailing List

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread John Black
On 02/22/2010 09:39 PM, Slack-Moehrle wrote: Hi All, I have Forms that I submit for processing. I have seen examples of people using either $_POST or $_REQUEST. When would I choose one over the other? When you don't care how you get the data use $_REQUEST. $_REQUEST will contain $_GET,$_POST,$

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Rene Veerman
On Mon, Feb 22, 2010 at 9:39 PM, Slack-Moehrle wrote: > Hi All, > > I have Forms that I submit for processing. I have seen examples of people > using either $_POST or $_REQUEST. > > When would I choose one over the other? I like to be specific and go for $_POST, but some people want flexibility

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Joseph Thayne
Richard wrote: It's a wise choice to go with $_POST, unless your form is a GET form, in which case use $_GET. $_REQUEST has the potential to open your script(s) up to security issues. I am not sure what the security issues are you are referring to as the $_REQUEST superglobal contains both

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread shiplu
On Tue, Feb 23, 2010 at 2:39 AM, Slack-Moehrle wrote: > Hi All, > > I have Forms that I submit for processing. I have seen examples of people > using either $_POST or $_REQUEST. > > When would I choose one over the other? > > Also, I see examples of these being used with and without the single qu

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Richard
Hi, > I have Forms that I submit for processing. I have seen examples of people > using either $_POST or $_REQUEST. > > When would I choose one over the other? It's a wise choice to go with $_POST, unless your form is a GET form, in which case use $_GET. $_REQUEST has the potential to open your

Re: [PHP] $_POST is empty , but were are the variables posted??

2009-12-17 Thread Ashley Sheridan
On Thu, 2009-12-17 at 13:30 -0800, Steve wrote: > On 12/17/2009 1:21 PM, gato chlr wrote: > > Hi, > > sorry for ask this again, but i really can't solve it. > > It must be easy but i can't find the solution > > > > this is my code: > > //form.php > > > > name : > > > > > > > > //and this is the

Re: [PHP] $_POST is empty , but were are the variables posted??

2009-12-17 Thread gato chlr
THANKS A LOT!!! to every one!!! . it works. 2009/12/17 Joseph Thayne > Give your input a name. (i.e. name="myname") > > -Original Message- > From: gato chlr [mailto:dany...@gmail.com] > Sent: Thursday, December 17, 2009 3:22 PM > To: php-general@lists.php.net > Subject: [PHP] $_POST is

Re: [PHP] $_POST is empty , but were are the variables posted??

2009-12-17 Thread Steve
On 12/17/2009 1:21 PM, gato chlr wrote: Hi, sorry for ask this again, but i really can't solve it. It must be easy but i can't find the solution this is my code: //form.php name : //and this is the mail.php $name = $_POST["myname"]; var_dump($name); and the result is: NULL i'm usi

Re: [PHP] @$_POST[...]

2009-04-23 Thread PJ
Chris wrote: > Luke wrote: >> 2009/4/22 PJ >> >>> Could somebody explain to me the meaning of @ in $var = >>> @$_POST['title'] ; >>> where could I find a cheat sheet for those kinds of symbols or what are >>> they called? >>> Sorry for my ignorance, but maybe this will take the fog filter our of >

Re: [PHP] @$_POST[...]

2009-04-22 Thread 9el
On Thu, Apr 23, 2009 at 5:26 AM, PJ wrote: > 9el wrote: >> Rather than looking for cheatsheets you should read the ZCE >> preparation guide book and PHP manual. >> >> > That's a lame duck response. I'm not stupid enough to not search and try > to find answers on G and in the manuals & tutorials. T

Re: [PHP] @$_POST[...]

2009-04-22 Thread Chris
Luke wrote: 2009/4/22 PJ Could somebody explain to me the meaning of @ in $var = @$_POST['title'] ; where could I find a cheat sheet for those kinds of symbols or what are they called? Sorry for my ignorance, but maybe this will take the fog filter our of my neurons. :-\ I believe placing an

Re: [PHP] @$_POST[...]

2009-04-22 Thread PJ
9el wrote: > Rather than looking for cheatsheets you should read the ZCE > preparation guide book and PHP manual. > > That's a lame duck response. I'm not stupid enough to not search and try to find answers on G and in the manuals & tutorials. They are not always obvious so I often rely on the g

Re: [PHP] @$_POST[...]

2009-04-22 Thread 9el
Rather than looking for cheatsheets you should read the ZCE preparation guide book and PHP manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] @$_POST[...]

2009-04-22 Thread Luke
2009/4/22 PJ > Could somebody explain to me the meaning of @ in $var = @$_POST['title'] ; > where could I find a cheat sheet for those kinds of symbols or what are > they called? > Sorry for my ignorance, but maybe this will take the fog filter our of > my neurons. :-\ > > -- > unheralded genius:

Re: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Alex Kirk
Quoting "Daniel P. Brown" <[EMAIL PROTECTED]>: On Wed, Dec 3, 2008 at 6:03 PM, Alex Kirk <[EMAIL PROTECTED]> wrote: It works like a charm on a different machine with an essentially identical config (it's a newer version of FreeBSD, but that's about it); however, it never displays the contents

Re: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Daniel P. Brown
On Wed, Dec 3, 2008 at 6:03 PM, Alex Kirk <[EMAIL PROTECTED]> wrote: > > It works like a charm on a different machine with an essentially identical > config (it's a newer version of FreeBSD, but that's about it); however, it > never displays the contents of $_POST['testvar'] on the machine that > s

Re: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Chris
[EMAIL PROTECTED] wrote: There are httpd.conf settings to reject POST requests, but I don't think it would behave like that... But maybe it's a bit more complicated than what I've ever seen for httpd.conf Could be mod_security getting in the way and killing some content. -- Postgresql & php

Re: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread ceo
There are httpd.conf settings to reject POST requests, but I don't think it would behave like that... But maybe it's a bit more complicated than what I've ever seen for httpd.conf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Wolf
-Original Message- From: Alex Kirk I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD 6.2. It's worked quite well for over a year now. However, as of some time last night, phpBB broke; upon investigation, I realized that the problem was that $_POST was never getting

Re: [PHP] $_POST in header

2008-11-18 Thread Craige Leeder
Hi Alain, In short, you can't. It's the users computer that remembers what headers it sent last time, and when you refresh, it WILL ask them to send those headers again. The way this is typically handled from a programming perspective is to do all your processing on one page, and then jump a

RE: [PHP] $_POST in header

2008-11-18 Thread Jay Blanchard
[snip] i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread mike
> On Jan 21, 2008 3:22 AM, nihilism machine <[EMAIL PROTECTED]> wrote: > > I'm trying to create a function that will first take an array of > > $_POSTs and give them key/value pairs like variables. For instance, if > > i had $_POST['whatever'] = "whatever", that would be made into > > $whatever = "

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread Manuel Vacelet
On Jan 21, 2008 3:22 AM, nihilism machine <[EMAIL PROTECTED]> wrote: > I'm trying to create a function that will first take an array of > $_POSTs and give them key/value pairs like variables. For instance, if > i had $_POST['whatever'] = "whatever", that would be made into > $whatever = "whatever",

Re: [PHP] $_POST Array and Cleaning

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 9:22 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > I'm trying to create a function that will first take an array of > $_POSTs and give them key/value pairs like variables. For instance, if > i had $_POST['whatever'] = "whatever", that would be made into > $whatever = "whatever"

Re: [PHP] $_POST superglobal empty, while readfile("php://input")does return data.

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Mackatack <[EMAIL PROTECTED]> wrote: > > I have not defined any tags in my httpd.conf and by default > apache should accept all request methods. I've stripped my apache config > down to: > > Listen 80 > NameVirtualHost *:80 > > ServerName my.server.com > DocumentRoot

Re: [PHP] $_POST superglobal empty, while readfile("php://input")does return data.

2007-11-04 Thread Mackatack
Jim Lucas schreef: Mackatack wrote: Nathan Nobbe schreef: On 11/3/07, Mackatack <[EMAIL PROTECTED]> wrote: Hey all! Im trying to submit a very basic form to phpinfo(): readfile: '; readfile("php://input") phpinfo(); ?> When i use the button to submit the

Re: [PHP] $_POST superglobal empty, while readfile("php://input") does return data.

2007-11-03 Thread Jim Lucas
Mackatack wrote: Nathan Nobbe schreef: On 11/3/07, Mackatack <[EMAIL PROTECTED]> wrote: Hey all! Im trying to submit a very basic form to phpinfo(): readfile: '; readfile("php://input") phpinfo(); ?> When i use the button to submit the form and it loads t

Re: [PHP] $_POST superglobal empty, while readfile("php://input") does return data.

2007-11-03 Thread Mackatack
Nathan Nobbe schreef: On 11/3/07, Mackatack <[EMAIL PROTECTED]> wrote: Hey all! Im trying to submit a very basic form to phpinfo(): readfile: '; readfile("php://input") phpinfo(); ?> When i use the button to submit the form and it loads the new page I get:

  1   2   3   >