[PHP] Re: $_POST value disappearing?

2011-08-02 Thread Shawn McKenzie
On 08/02/2011 10:04 AM, 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-- form action=index.php method=post enctype=multipart/form-data input type=hidden name=f_ap value=upload / input

[PHP] Re: $_POST variable

2011-03-11 Thread Geoff Lane
Hi Danny, On Friday, March 11, 2011, 7:28:10 PM, you wrote: 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: input type=radio name=?php print

[PHP] Re: $_POST variable

2011-03-11 Thread Shawn McKenzie
On 03/11/2011 01:28 PM, 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: input type=radio name=?php print (radio_.$result_from_mysql) ; ?

Re: [PHP] Re: $_POST variable

2011-03-11 Thread richard gray
You could use foreach to iterate through the post variables until you encounter a match: foreach ($_POST as $key = $value){ if (substr($key, 0, 6) == radio_) { $buttonName = $key; $buttonValue = 4value; break 2; } } I haven't tried the above code, but I hope

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Jim Lucas
On 3/11/2011 12:03 PM, Shawn McKenzie wrote: On 03/11/2011 01:28 PM, 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: input type=radio

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Shawn McKenzie
On 03/11/2011 02:33 PM, Jim Lucas wrote: On 3/11/2011 12:03 PM, Shawn McKenzie wrote: On 03/11/2011 01:28 PM, 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

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Kirk Bailey
On 3/11/2011 2:43 PM, Geoff Lane wrote: [snip] You could use foreach to iterate through the post variables until you encounter a match: foreach ($_POST as $key = $value){ if (substr($key, 0, 6) == radio_) { $buttonName = $key; $buttonValue = 4value; break 2;

[PHP] Re: $_POST issues

2010-12-01 Thread Nadim Attari
On 12/01/2010 08:56 PM, Nadim Attari wrote: On 12/01/2010 06:50 PM, Bundhoo M Nadim wrote: Hello, Can someone explain me what this piece of code basically does ? ?php header(Expires: . gmdate(D, d M Y H:i:s, time() + (0*60)) . GMT); header(Pragma: no-cache); print

Re: [PHP] Re: $_POST issues

2010-12-01 Thread Nadim Attari
On 12/01/2010 10:08 PM, Daniel P. Brown wrote: On Wed, Dec 1, 2010 at 12:15, Nadim Attarina...@alienworkers.com wrote: where does receipt.php gets the $_GET data ? Isn't it from response.php where the $_POST data are being http_build_query()'ed ?? $param = http_build_query($_POST);-

Re: [PHP] Re: $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 16:32, Nadim Attari na...@alienworkers.com wrote: Thank you Daniel for this detailed post of yours. Really appreciated. Quite welcome. Saving the $_POST data (in response.php) in a file will serve nothing. - And you said this was an unnecessary step from the

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

2008-12-03 Thread Nathan Rixham
Alex Kirk wrote: 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 populated, even on properly

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

2008-12-03 Thread Jim Lucas
Nathan Rixham wrote: Alex Kirk wrote: 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] Re: $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread 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 populated, even on properly formed HTML forms.

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

2008-12-03 Thread Chris
Did you check the apache logs or the php error logs? Apache logs show no errors at all. The PHP error log is more interesting - I turned on logging to /var/log/php.err once I started trying to diagnose this, and that file has yet to be created. Apache can't write to that location. You

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

2008-12-03 Thread Nathan Rixham
Alex Kirk wrote: 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 populated, even on properly

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

2008-12-03 Thread Alex Kirk
touch /var/log/php.err chown apache:apache /var/log/php.err adjust apache with your webserver user/group (check httpd.conf) though I doubt anything will show up there. Well, done anyway, just in case. Do you have mod_security enabled in apache? Maybe it's catching something it shouldn't.

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

2008-12-03 Thread 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 populated, even on properly formed HTML forms.

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

2007-08-01 Thread Colin Guthrie
Christian Hänsel wrote: Hi guys, 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-

[PHP] Re: $_POST array order

2007-03-14 Thread Al
Why not simply unset() the unwanted value by its key, i.e., the submit button's name. Tim 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

Re: [PHP] Re: $_POST array order

2007-03-14 Thread Jochem Maas
Al wrote: Why not simply unset() the unwanted value by its key, i.e., the submit button's name. actually double unset it. to avoid the request array key hack that exists in older versions of php :-) Tim wrote: Hi, Quick question regarding $_POST array element order, first the situation:

[PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Tanoor Dieng wrote: Hi, are there some variables in your post array(aka are you sure that $_POST is not empty)? Normally this should works. Tanoor. 2006/2/24, Jason Gerfen [EMAIL PROTECTED]: I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the

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

2006-02-24 Thread Vidyut Luther
Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Tanoor Dieng

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

2006-02-24 Thread Jason Gerfen
Vidyut Luther wrote: Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL

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

2006-02-24 Thread Christopher Taylor
I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2006-02-24 Thread Jason Gerfen
Christopher Taylor wrote: I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris Yeah, I actually tried that as well. --

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

2006-02-24 Thread Vidyut Luther
just for fun, I tried to do what you're doing. http://www.phpcult.com/jason.phps http://www.phpcult.com/jason.php to run it.. it seems to be working.. the problem is in your code.. but not PHP properly.. On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Christopher Taylor wrote: I am not

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

2005-12-01 Thread Matt Monaco
As I learned recently, register_globals should always be off, you do not need it to enable GET and POST variables. I believe enabling it will do something like set $_POST[name] to $name automatically (of course there's always the 90% chance that I'm absolutely wrong). You might want to see if

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

2005-12-01 Thread Norbert van Nobelen
register_globals=on will result in a totally non transparant way of variables from a post being usuable. For example: You post the variable tt_name with a value, than echo $tt_name will show that value without you having to assign it from the post. It is not only insecure, it is also very bad

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

2005-12-01 Thread Unknown Unknown
I have heard from someone you must keep turning register_globals on and off while restarting your web server for $_POST and $_GET to work properly although I'm not very sure.. On 12/1/05, Norbert van Nobelen [EMAIL PROTECTED] wrote: register_globals=on will result in a totally non transparant

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

2005-11-30 Thread David Robley
Fil wrote: Ladies and Gentlemen, Thankyou for this opportunity of picking someones brains before I tear the place apart. I am just starting with PHP but have encountered an insurmountable hurdle.. I need to work through HTML form posting examples to a PHP script. ONE STEP after

[PHP] Re: $_POST

2005-01-17 Thread Adam Hubscher
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?

[PHP] Re: $_POST array not being populated

2005-01-17 Thread Jason Barnett
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 still

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

2004-07-14 Thread Richard Davey
Michael Purdy wrote: script language=php echo 'form method=POST action=2.php'; echo 'pInput a Test Variable input type=text name=testvar size=20/p'; echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset name=B2/p'; echo '/form'; /script Is there a particular reason you're

[PHP] Re: $_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) I

Re: [PHP] Re: $_post and array question

2004-05-18 Thread Curt Zirzow
* Thus wrote Amon ([EMAIL PROTECTED]): 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) function foo($v) {} foo($asdf['qwer']); PHP Notice: Undefined variable:

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

2004-02-13 Thread Joshua Beall
Adam Bregenzer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Having a function to undo magic quotes can be very useful if you distribute your application. Here is what I use, just call disable_magic_quotes(). It should not do any damage if magic_quotes is already disabled.

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

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 12:14, Joshua Beall wrote: However, I am still interested in knowing if my code is broken in any way. It seems to work fine for me, but as per my original post, I did get this one odd behavior, with HTTP_RAW_POST_DATA being set, but _POST being an empty array. Any

[PHP] Re: $_POST trouble with html form

2004-02-08 Thread Paul Furman
OK, it's only when I call $_POST[comment] in the included action file that I get Forbidden You don't have permission to access...[error message]. I set it up with the action as an include because if I tried to just give the location, it tried to download jpeg-comment.php. Like I said, this is

[PHP] Re: $_POST[$variable]

2003-12-11 Thread Mike
If you change the name of the data field to something[] then the $_POST['something'] will be an array containing your data The code you have will result in 2 fields (one hidden one normal) with the same name ($i), this will cause lots of problems It is not a good idea to give form fields

[PHP] Re: $_POST[$variable]

2003-12-11 Thread Christian Jancso
thx Mike that works :-) thx also to the others for their help :-)) Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread Jon Kriek
I concur, assign the superglobal array to a variable ... $table= 'elements'; $Name = mysql_escape_string($_POST['elementName']); $sql = INSERT INTO $table SET Name= '$Name'; ... then use that opportunity to run a check on the output. -- Jon Kriek http://phpfreaks.com -- PHP General

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread DvDmanDT
$sql=insert into $table set Name = '.$_POST[elementName].'; or even better: $sql=insert into .$table. set Name = '.$_POST[elementName].'; But the method both Jake and Bao suggested will also work (temporary var)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Adam Reiswig [EMAIL

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread Lang Sharpe
$sql=insert into $table set Name = '$_POST[elementName]'; The problem with this is that you need to use curly braces around the variable being substituted in the string. Also use single quotes around the array index. $sql=insert into $table set Name = '{$_POST['elementName']}'; See the

[PHP] Re: $_POST array

2003-06-02 Thread zbranigan
Steven == Steven Farrier [EMAIL PROTECTED] writes: Steven I have tried using $_POST array variables in the following Steven ways $message = ($_POST['first_name']) Steven ($_POST['last_name'])\n($_POST['address'])\n($_POST['city']) Steven ($_POST['state']) Steven

[PHP] Re: $_POST array

2003-06-02 Thread sven
this works too: $message = $_POST['first_name']. .$_POST['last_name'].\n. $_POST['address'].\n. $_POST['city']. .$_POST['state']. $_POST['zip'].\n. $_POST['country'].\n. $_POST['email'].\n. $_POST['design'].\n. $_POST['comments']; Zbranigan [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] Re: $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread Philip Hallstrom
Try sql = .' . $_POST['jersey_id'][$x] . ',. Also make sure you're form is being submitted with POST and not GET... -philip On Tue, 25 Feb 2003, CF High wrote: Hey all. Got a problem with this sql statement -- php vars are evaluated (e.g. the $date var), but not the $_POST

[PHP] Re: _POST incorrect output...

2002-11-14 Thread Sebastian Konstanty Zdrojewski
The substitution is made only to array keys, not its values... Brad Apps wrote: Hey Again, I am doing the output from a _POST array and it seems to replace all spaces and '.'s in the file names with '_'. so a file name brads doc.htm outputs as brads_doc_htm. Any suggestions, PLEASE. Thanks.