Re: [PHP] $_POST- Vars - Back-Button

2007-08-01 Thread Richard Heyes
this might be a noob- question, but I simply do not care anymore. After a few hours of fiddling with this @/**%$ (screaming AAa), I would like to ask you. So what I have is this: I have a search engine for a car market, which has about 30 $_POST- vars. Now when the user clicks on a

Re: [PHP] $_POST

2007-07-17 Thread Dan Shirah
I'm using PHP 5.2 and $_POST works just fine. On 7/17/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote: Hey, Just wondering if anyone can help me out. I have been used to using $_POST but from what I can tell it isn't supported in PHP 5.

Re: [PHP] $_POST

2007-07-17 Thread Daniel Brown
On 7/17/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote: Hey, Just wondering if anyone can help me out. I have been used to using $_POST but from what I can tell it isn't supported in PHP 5. What do you use instead? Could you point us

Re: [PHP] $_POST

2007-07-16 Thread Robert Cummings
On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote: Hey, Just wondering if anyone can help me out. I have been used to using $_POST but from what I can tell it isn't supported in PHP 5. What do you use instead? Could you point us to the literature that says it's not supported in PHP5

RE: [PHP] $_POST array order

2007-03-15 Thread Michael Weaver
Another option would be to use an associative array: input type=text name=domain_object_vars[FirstName] value=/ . . . . input type=text name=domain_object_vars[Zip] value= This way the 'submit' button wouldn't even show up as a key in the array, which is accessible to PHP through the

RE: [PHP] $_POST array order

2007-03-14 Thread Brad Fuller
-Original Message- From: Tim [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:58 PM To: 'PHP' Subject: [PHP] $_POST array order Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post

Re: [PHP] $_POST array order

2007-03-14 Thread Tijnema !
On 3/14/07, Tim [EMAIL PROTECTED] wrote: Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last element

Re: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 11:58 am, Tim wrote: Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last

RE: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: You could also omit the name parameter of the submit button and it will not even be passed at all. input type=submit value= Submit Form I dunno about these new-fangled browsers, but in the old ones, you'd get Submit as the name if the user

RE: [PHP] $_POST array order

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 17:23 -0500, Richard Lynch wrote: On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: You could also omit the name parameter of the submit button and it will not even be passed at all. input type=submit value= Submit Form I dunno about these new-fangled

RE: [PHP] $_POST to function?

2006-02-24 Thread Dan Parry
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Jason Gerfen

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
Dan Parry wrote: Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message-

RE: [PHP] $_POST to function?

2006-02-24 Thread Jared Williams
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Passing it has distinct advantages, like being able to test the function. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I am not sure why this is

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Do: function global_template( $cmd, $args, $num, $message ) { ob_start(); echo pre; print_r( $args ); echo /pre; ob_end_flush(); return ob_get_contents(); } -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I

Re: [PHP] $_POST to function? [SOLVED]

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: http://th.php.net/manual/en/function.return.php -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Saturday, February 25, 2006 12:29 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] $_POST to function? Peter Lauri wrote

RE: [PHP] $_POST returns Array when getting data from multiple dropdown

2005-12-01 Thread Albert
Erfan Shirazi wrote: I want to get all data passed on to a certain page, I use this to make it happen: foreach($_POST as $key = $tempvalue) { $cVariable .= $key.=.$tempvalue.; } Try: ? function getValues($arrayWithValues, $pre='') { $tmpVal = ''; foreach($arrayWithValues as

RE: [PHP] $_POST returns Array when getting data from multiple dropdown

2005-12-01 Thread Ahmed Saad
On 12/1/05, Erfan Shirazi [EMAIL PROTECTED] wrote: foreach($_POST as $key = $tempvalue) { $cVariable .= $key.=.$tempvalue.; } Is there anyway I can get the values chosen instead of just Array? check for that first using is_array() and then loop through it appending it to the string

Re: [PHP] $_POST won't work for me

2005-11-30 Thread EasyHorpak.com
Could you let me know your OS and Webserver program. Did you use appserv for begin learn php? - Original Message - From: Fil [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, December 01, 2005 11:58 AM Subject: [PHP] $_POST won't work for me Ladies and Gentlemen,

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-02 Thread overbored
[EMAIL PROTECTED] (Richard Lynch) wrote in news:[EMAIL PROTECTED]: overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular,

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-01 Thread overbored
$ php --version PHP 4.3.10-2 (cli) (built: Dec 19 2004 03:41:45) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies [EMAIL PROTECTED] (Burhan Khalid) wrote in news:[EMAIL PROTECTED]: overbored wrote: Hi all, I'm learning PHP and I'd need to

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-01 Thread Burhan Khalid
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... What version of

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-01 Thread Richard Lynch
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... First, I

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-01 Thread overbored
[EMAIL PROTECTED] (Burhan Khalid) wrote in news:422474F6.4020708 @meidomus.com: overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-02-28 Thread Burhan Khalid
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... What version of

Re: [PHP] $_POST array not being populated

2005-01-18 Thread Richard Lynch
Bennie Foreman wrote: Hi, I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but

Re: [PHP] $_POST

2005-01-18 Thread Richard Lynch
if(isset($fp['name'],$fp['pass'],$fp['blah'])) Wow! Has isset() always allowed multiple inputs?... When I think of all the times I've typed isset() isset() isset() !!! Jeez, learn something every day. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] $_POST

2005-01-17 Thread Ville Mattila
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: One method I've done that is to create an array with the required field names, then loop it through and check whether they all have a value.

Re: [PHP] $_POST

2005-01-17 Thread Andrew Maxwell
Thats exactly what i need. Thanks a ton. ~Andrew On Mon, 17 Jan 2005 10:58:07 +0200, Ville Mattila [EMAIL PROTECTED] wrote: Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: One

Re: [PHP] $_POST

2005-01-17 Thread Rasmus Lerdorf
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah])) { etc. } is there an easy way to check if all of the varibles have data in them?

RE: [PHP] $_POST array not being populated

2005-01-17 Thread Jay Blanchard
[snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but still nothing. When I

Re: [PHP] $_POST array not being populated

2005-01-17 Thread Jochem Maas
Jay Blanchard wrote: [snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-23 Thread Chris Shiflett
Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good thing to do? You might have two submit buttons, where you want to take a different action depending upon which one the user clicks. Chris = Chris Shiflett -

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-23 Thread steve
Chris Shiflett wrote: Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good thing to do? You might have two submit buttons, where you want to take a different action depending upon which one the user clicks. You might

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Afan Pasalic
in case $_POST['submit'] == 'Yes' only 2nd example works. Right? -a|fan Perry Jönsson wrote: Hello, What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } -- PHP General

RE: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Jay Blanchard
[snip] What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } [/snip] One is checking if $_POST contains a specific value, the other just checks to

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread ankur_os
Dear u r correct, Both r same... but in first case ur variable with a constant string value And in second case u r checking that your variable is set or not but one limitation with the function is that.. isset() only works with variables as passing anything else will result in a parse error.

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Greg Donald
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson [EMAIL PROTECTED] wrote: What is the difference between these two examples? diff 1.txt 2.txt 1c1 1. if ($_POST['submit'] == 'Login') { --- 2. if (isset($_POST['submit']) { -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Gerhard Meier
On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote: 1. if ($_POST['submit'] == 'Login') { ... } This one is true if $_POST['submit'] is equal to 'Login'. 2. if (isset($_POST['submit']) { ... } This one is true if $_POST['submit'] is set, it doesn't matter which value it has. /GM

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Perry Jnsson
Gerhard Meier wrote: On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote: 1. if ($_POST['submit'] == 'Login') { ... } This one is true if $_POST['submit'] is equal to 'Login'. 2. if (isset($_POST['submit']) { ... } This one is true if $_POST['submit'] is set, it doesn't matter which

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Perry Jönsson
Jay Blanchard wrote: [snip] What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } [/snip] One is checking if $_POST contains a specific value, the other

RE: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Vail, Warren
Because you can have more than one submit button per form? Warren Vail -Original Message- From: Perry Jönsson [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 12:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST['xxx'] = blabla ? Gerhard Meier wrote: On Mon, Nov

RE: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Jay Blanchard
[snip] One is checking if $_POST contains a specific value, the other just checks to see if it contains a value. If $_POST['submit'] contains 'foo' is ISSET. Make sense? Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Robin Vickery
On Mon, 22 Nov 2004 21:57:23 +0100, Perry Jönsson [EMAIL PROTECTED] wrote: Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good thing to do? A forum. You have two submit buttons, one labeled 'draft' and one labeled 'final'.

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Gerhard Meier
On Mon, Nov 22, 2004 at 09:55:35PM +0100, Perry Jönsson wrote: Gerhard Meier wrote: If you only have one form on a page, why would you like to check the value/name of the submit button? Is there a security aspect to this? That was not your question. You asked what the difference is. And

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Angelo Zanetti
I speak under correction but the reason could be that if someone tries to hack your site, for example I post to your HTML page, you want to check it your $_POST contains a certain variable (which may be hidden) Not really sure besides that Perry Jönsson [EMAIL PROTECTED] 11/22/2004 10:57:23

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Dennis Seavers
anything, could they not be reset easily? [Original Message] From: Angelo Zanetti [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Date: 11/23/2004 12:17:37 AM Subject: Re: [PHP] $_POST['xxx'] = blabla ? I speak under correction but the reason could be that if someone tries to hack your

Re: [PHP] $_POST and multiple windows

2004-11-20 Thread Jason Wong
On Saturday 20 November 2004 21:02, Rory McKinley wrote: My question is about the $_POST superglobal. I assume that there will be only one instance of this superglobal per session and not per open window You would in fact get a version of $_POST for *each* _request_. Request meaning each

Re: [PHP] $_POST v4.3 to v5.0

2004-07-14 Thread Geethanandh Kandasamy
I wonder why do you need script language=php /script try without that On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy [EMAIL PROTECTED] wrote: Folks I appreciate the answers received previously in relation to my 4,3 to 5.0 question regarding $_REQUEST $_POST etc.. Unfortunately I am

Re: [PHP] $_POST v4.3 to v5.0

2004-07-14 Thread Justin Patrin
What are the php.ini settings for error_reporting for both of these? A difference in the error reporting could be causing those notices. On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy [EMAIL PROTECTED] wrote: Folks I appreciate the answers received previously in relation to my 4,3 to 5.0

Re: [PHP] $_post and array question

2004-05-18 Thread Amon
Thanks for help Daniel Clark. I know i must use isset function but that was not the issue. But thanks anyway:) Curt Zirzow thanks for your reply also. But that has nothing to do with reference. If you use reference or not.. it still would not result in an error (hee... I want an error :P) Matt

Re: [PHP] $_post and array question

2004-05-17 Thread Matt Matijevich
[snip] functionX($_POST[test_arr]) $arr_test = $_POST[test_arr]; Knowing that $_POST[test_arr]) does not exist.. this code will not result in a error. Is this a bug,error,etc? Should this not also produce a novice error? [snip] I think when you are doing this functionX($_POST[test_arr])

Re: [PHP] $_post and array question

2004-05-17 Thread Daniel Clark
I've done a couple things. One is to use isset() and check first. The other is to add a hidden input field, that way something is always sent. input type=hidden name=test_arr[] input type=checkbox name=test_arr[] input type=checkbox name=test_arr[] Best readers, //PHP version: 4.3.6 I

Re: [PHP] $_post and array question

2004-05-17 Thread Curt Zirzow
* Thus wrote Amon ([EMAIL PROTECTED]): functionX($_POST[test_arr]) $arr_test = $_POST[test_arr]; Knowing that $_POST[test_arr]) does not exist.. this code will not result in a error. Is this a bug,error,etc? Should this not also produce a novice error? Taks a look at the definition of

RE: [PHP] $_POST not working with str_replace

2004-03-26 Thread Ford, Mike [LSS]
On 24 March 2004 22:28, PHP Email List wrote: And ? #2 are there any settings within PHP that would limit my ability to visually display the contents of a POST variable on a .rtf document as opposed to being displayed on the browser? Yes -- take a look at the variables_order directive

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Ford, Mike [LSS]
-Original Message- From: PHP Email List [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 00:13 what happens if you do the following? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $name, $output); ? ?? I tried that, but I know I can

Re: [PHP] $_POST not working with str_replace

2004-03-24 Thread Brent Baisley
A technicality, but GET/POST are not interchangeable, it depends on the method declared in your form. I'm sure you meant they were interchangeable if you changed your form method. What is interchangeable is $_REQUEST with $_POST or $_GET. You may try using $_REQUEST just for testing. If it

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] A technicality, but GET/POST are not interchangeable, it depends on the method declared in your form. I'm sure you meant they were interchangeable if you changed your form method. Right I had mentioned that... (all

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] What is interchangeable is $_REQUEST with $_POST or $_GET. You may try using $_REQUEST just for testing. If it works, then you could use $_REQUEST since it will work with GET or POST variables. Although that's not the

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Rick Fletcher
Ok here's the deal, I cut out the middle man, went straight to the script, assigned my variable a string, and loaded the rtf page, NADA, ZIP, ZILCH!! At least as far as this test is concerned, I hope you have a nice soft desk to bang your head on. Check your assignment operator one more

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Rick Fletcher [mailto:[EMAIL PROTECTED] If your script has the same == where a plain ol' = should be, that'd account for the replacement being empty (since it's replaced with $na, which wasn't assigned). Well your correct, that put me to ease some, as now I

Re: [PHP] $_POST not working with str_replace

2004-03-23 Thread John W. Holmes
PHP Email List wrote: Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with GET but not POST, I guess I don't understand why. [snip] $name = $_POST['FNAME']; [snip] $output =

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
PHP Email List wrote: Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with GET but not POST, I guess I don't understand why. [snip] $name = $_POST['FNAME']; [snip] $output =

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 3:08 PM said: This is becoming very odd! Possible bug? I hate throwing that out there but it doesn't make sense why one would work and the other wouldn't since all any of them are doing is holding strings. Any other

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
what happens if you do the following? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $name, $output); ? ?? I tried that, but I know I can get the values from the $_POST array as per John's email about using print_r($_POST) to see what was showing. And yes I get

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 4:13 PM said: I tried that, but I know I can get the values from the $_POST array as per John's email about using print_r($_POST) to see what was showing. And yes I get the value I wanted in between the :: ::. hhhm!!!

Re: [PHP] $_POST not working with str_replace

2004-03-23 Thread John W. Holmes
PHP Email List wrote: Ok I tried the print_r($_POST) and received... Array ( [FNAME] = test [LNAME] = t [ADDRESS] = t [CITY] = t [STATE] = t [ZIP] = t [DATE] = t [PARAGRAPH1]= t [PARAGRAPH2] = t [FROM] = t [SUBMIT] = TEST ME ) So they array isn't empty for my post. Obviously the values don't

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 7:59 PM Like someone else said, you need to whittle your code down to a minimum and do a lot of variable checking along the way. Slowly add code back until you find what's causing the

Re: [PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 11:38, Joshua Beall wrote: I want to turn off magic quotes. I realize in retrospect that using a .htaccess file to turn magic quotes would probably be better than this code, and I am going to switch to that solution, but I am still trying to figure out what is causing my

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
On Sun, 2004-02-08 at 13:15, Paul Furman wrote: Why am I getting the error Undefined index: comment? It's probably a typo because I had something similar that worked. form action=?php include (ACTION_DIR./jpeg-comment.php); ? method=post textarea name=comment ROWS=6 COLS=60

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Paul Furman
Adam Bregenzer wrote: Also perhaps related, when I call $_POST[comment] in the action file, it gives me Forbidden You don't have permission to access...[error message] but this is my own server at home. I'm quite unfamiliar with forms (and new to PHP for that matter). That looks like an

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Paul Furman
Paul Furman wrote: Adam Bregenzer wrote: Make sure the directory this file is in is accessible from the web. No, it's not accessible from the web, it's in my protected php_library outside public_html. It does load the protected action file as long as I don't try to call $_POST[comment]

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
On Sun, 2004-02-08 at 13:32, Paul Furman wrote: No, it's not accessible from the web, it's in my protected php_library outside public_html. Can't I execute a hidden script with a form? no Should I make a little php action file in public_html that includes the actual file? yes -- Adam

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Paul Furman
Adam Bregenzer wrote: Should I make a little php action file in public_html that includes the actual file? yes OK thanks, I made this: ?php # jpeg-comment-public.php include (C:/_Paul/web/phplib/action/jpeg-comment.php); ? but now the hidden one isn't aware of any variables. Forbidden You

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Paul Furman
Adam Bregenzer wrote: You will not have access to the $_POST[comment] variable until the form is submitted. Understood. That debug test only worked after submitting the form. So maybe the better way is to just submit the form with the action file simply reloading the main page to refresh it

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
On Sun, 2004-02-08 at 13:58, Paul Furman wrote: OK thanks, I made this: ?php # jpeg-comment-public.php include (C:/_Paul/web/phplib/action/jpeg-comment.php); ? but now the hidden one isn't aware of any variables. Forbidden You don't have permission to access Notice: Undefined

Re: [PHP] $_POST[]

2003-12-19 Thread Justin French
On Friday, December 19, 2003, at 05:44 PM, Burrito Warrior wrote: That practice $_POST[formReviewBy] should be discouraged. That kind of practice is nearly as bad as magic numbers. I think you'll find I *was* discouraging it. Justin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] $_POST[]

2003-12-19 Thread David T-G
Burrito Warrior -- ...and then Burrito Warrior said... % % That practice $_POST[formReviewBy] should be discouraged. That kind % of practice is nearly as bad as magic numbers. What are magic numbers? Surely you don't mean the file recognition codes in /etc/magic for use by file(1) under

RE: [PHP] $_POST[]

2003-12-19 Thread Jay Blanchard
[snip] What are magic numbers? Surely you don't mean the file recognition codes in /etc/magic for use by file(1) under *NIX... [/snip] Magic numbers are hard coded numbers that are not referrenced by a variable i.e. $thisNumber = (4 == $magic)? do stuff: do other stuff; should be $var = 4;

RE: [PHP] $_POST[]

2003-12-18 Thread Martin Towell
It should have quotes, unless you have defined formReviewBy as a constant PHP's nice enough to interpret it as a string if using it as a constant fails, but you should still quote it anyway. Martin ?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ? Should $_POST[formReviewBy]

Re: [PHP] $_POST[]

2003-12-18 Thread Justin French
On Friday, December 19, 2003, at 01:35 PM, Philip J. Newman wrote: ?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ? Should $_POST[formReviewBy] have quotes or dose it not matter? Well, since you've obviously tested it and it works, then the simple answer is probably it doesn't

RE: [PHP] $_POST[]

2003-12-18 Thread Burrito Warrior
[mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:57 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST[] On Friday, December 19, 2003, at 01:35 PM, Philip J. Newman wrote: ?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ? Should $_POST[formReviewBy

Re: [PHP] $_POST[$variable]

2003-12-11 Thread CPT John W. Holmes
From: Christian Jancso [EMAIL PROTECTED] I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; $old_station[$o] = $_POST[$i]; $new_station[$o] = $_POST[$i]; Variables are not

Re: [PHP] $_POST[$variable]

2003-12-11 Thread Chris Garaffa
On Dec 11, 2003, at 8:02 AM, Christian Jancso wrote: Hi there, I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; Christian, My biggest question is: What are $i and $o set to? Unless

RE: [PHP] $_POST var name char conversion . to _

2003-12-10 Thread Ford, Mike [LSS]
On 10 December 2003 16:19, ROBERT MCPEAK contributed these pearls of wisdom: Has anybody seen the seemingly automatic and unexplained conversion of the character . to _ in $_POST var names? Yes. It's PHP automagic by PHP. I've tested several ways, with and without PHP, and I've dug around

Re: [PHP] $_POST var name char conversion . to _

2003-12-10 Thread Chris Shiflett
--- ROBERT MCPEAK [EMAIL PROTECTED] wrote: Has anybody seen the seemingly automatic and unexplained conversion of the character . to _ in $_POST var names? This is intentional. The . character is not allowed in a variable name, so PHP has to translate your HTML form's variable name to a PHP one

RE: [PHP] $_POST var name char conversion . to _

2003-12-10 Thread ROBERT MCPEAK
Thanks all. I guessed that it was something built in to PHP, although I was surprised when I couldn't find a good explanation in the usually excellent docs. -Bob Mc Ford, Mike [LSS] [EMAIL PROTECTED] 12/10/03 11:29AM On 10 December 2003 16:19, ROBERT MCPEAK contributed these

Re: [PHP] $_POST bug?

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote: : : -Original Message- : From: Jake McHenry [mailto:[EMAIL PROTECTED] : Sent: Thursday, November 13, 2003 12:53 AM : To: [EMAIL PROTECTED] : Subject: [PHP] $_POST bug? : : I have 5 fields, all 1 character in length,

Re: [PHP] $_POST bug?

2003-11-13 Thread Kim Steinhaug
My system (win2000 IIS) also handles 0, and webserver (redhat apache) also handles 0. Your system sounds faulty in some way, what browser are U using and what version of PHP. I know from earlier experience that some versions of Netscape behaves strange on the form elements, meaning when posting

RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
-Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST bug? On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote: : : -Original Message- : From: Jake McHenry

RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
-Original Message- From: Kim Steinhaug [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:28 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST bug? My system (win2000 IIS) also handles 0, and webserver (redhat apache) also handles 0. Your system sounds faulty

Re: [PHP] $_POST bug?

2003-11-13 Thread Eugene Lee
On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote: : : print_r($_POST) shows me that $_POST has the single 0 value. I solved : my problem, instead of having just if ($_POST['test']), I changed it : to if ($_POST['test'] != ). Right after I posted, I tried this, and : a couple other

Re: [PHP] $_POST bug?

2003-11-13 Thread - Edwin -
Hi, (I think you intended to send this to the list...) On Thu, 13 Nov 2003 02:03:50 -0500 Jake McHenry [EMAIL PROTECTED] wrote: ...[snip]... I'm running RHLinux 9, php 4.2.2, apache 2.0.40 Hmm... same here. Only difference could be that I rebuilt the php RPMs to support mbstring--I'm sure

Re: [PHP] $_POST bug?

2003-11-13 Thread Burhan Khalid
Jake McHenry wrote: I've tried it on opera, netscape, IE, and mozilla right on the server. It seems to be a php condition thing, not really what's in the $_POST array, as I just posted print_r($_POST) does contain the values, it's only when I have if ($_POST['test']) that the problem occurs.

RE: [PHP] $_POST bug?

2003-11-13 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: print_r($_POST) shows me that $_POST has the single 0 value. I solved my problem, instead of having just if ($_POST['test']), I changed it to if ($_POST['test'] != ). Right after I posted, I tried this, and a couple other things.. The problem only

RE: [PHP] $_POST bug?

2003-11-13 Thread Jake McHenry
-Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 4:28 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST bug? On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote: : : print_r($_POST) shows me that $_POST has the single 0

RE: [PHP] $_POST bug?

2003-11-12 Thread Jake McHenry
-Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:53 AM To: [EMAIL PROTECTED] Subject: [PHP] $_POST bug? I have 5 fields, all 1 character in length, numbers being entered. If zero's are entered in the boxes, and the form is

Re: [PHP] $_POST bug?

2003-11-12 Thread - Edwin -
On Thu, 13 Nov 2003 00:59:11 -0500 Jake McHenry [EMAIL PROTECTED] wrote: ...[snip]... Just to test, I changed the input field length to 3, and every time I tried it, single 0 does not create the $_POST variable. Double 0's create it, along with any other numbers, it's only when a single 0 is

Re: [PHP] $_POST bug?

2003-11-12 Thread Ryan Thompson
On Thursday 13 November 2003 00:59, Jake McHenry wrote: -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:53 AM To: [EMAIL PROTECTED] Subject: [PHP] $_POST bug? I have 5 fields, all 1 character in length, numbers being

<    1   2   3   >