Re: [PHP] $HTTP_POST_VARS

2003-06-09 Thread Àíòîí
Hi AH Whats the advantage (or shall i say disadvantage )of passing form variables to a function like shown below: AH function function_name($var,$var1,$var2) AH { AH } AH rather than passing the $HTTP_POST_VARS array to the fuction like: AH function function_name($HTTP_POST_VARS) AH { AH }

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 23:48, Lee P. Reilly wrote: Hi there, I'm currently using PHP 4.2.2 and I am have encountered some problems when trying to access $HTTP_POST_VARS. The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; = C:\\Documents and

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread rblack
Think you want $HTTP_POST_FILES rather than $HTTP_POST_VARS. As in $HTTP_POST_FILES['userfile']['name']; HTH, Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED]

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Chris Shiflett
--- Lee P. Reilly [EMAIL PROTECTED] wrote: The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; = C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir echo $userfile; = C:\\Documents and Settings\\Administrator\\Desktop\\IR

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Thanks for all the replies. However, I still have problems as the following code produces the following output: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= echo 0: . $userfile . br; echo 1: . $HTTP_POST_FILES['userfile']['size'] . br; echo 2: .

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Joseph W. Goff
Message - From: Chris Shiflett [EMAIL PROTECTED] To: Lee P. Reilly [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Monday, December 16, 2002 10:04 AM Subject: Re: [PHP] $HTTP_POST_VARS problem --- Lee P. Reilly [EMAIL PROTECTED] wrote: The following statements have the following return

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Problem solved: I forgot to add the enctype to the original FORM tag. Cheers, Lee, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP_POST_VARS Question

2002-06-20 Thread Erik Price
On Thursday, June 20, 2002, at 02:41 PM, Chris Sechiatano wrote: Just a simple question about the HTTP_POST_VARS. I know my forms will work if I use only the name of the input. Say a text box called FirstName. I can just do: print $FirstName; and everything works fine. Why would I

Re: [PHP] $HTTP_POST_VARS vs _POST

2002-04-22 Thread Erik Price
On Monday, April 22, 2002, at 12:19 PM, [EMAIL PROTECTED] wrote: HI ML Only one little question : I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS exist on php 4.1.2 ? Yes, but you would have had an answer to this question 45 minutes ago if you had just tried it.

RE: [PHP] $HTTP_POST_VARS

2002-03-21 Thread Rick Emery
$interest = $HTTP_POST_VARS['interest']; or (if using PHP 4.1) $interest = $_POST['interest']; then reference $interest[0], $interest[1], $interest[2],... -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:54 AM To: [EMAIL PROTECTED]

Re: [PHP] $HTTP_POST_VARS

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, Joshua E Minnie wrote: I need to access a variable on a form that allows multiples. I have to use $HTTP_POST_VARS so I need to know how to display the information obtained from the form. This is what I am using right now: ? reset($HTTP_POST_VARS[interest]);

RE: [PHP] HTTP_POST_VARS problem

2002-02-08 Thread Tim Ward
To: [EMAIL PROTECTED] Subject: Re: [PHP] HTTP_POST_VARS problem Please ignore my question - I just figured it out. I had the method=post in the input type=submit tag rather than in the form tag. It works! However, if one has an HTML select/option menu

Re: [PHP] HTTP_POST_VARS problem

2002-02-07 Thread ejfs
Please ignore my question - I just figured it out. I had the method=post in the input type=submit tag rather than in the form tag. It works! However, if one has an HTML select/option menu scrolling list with multiple selections, how does one get the number of values for the same name with

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Andrey Hristov
I cannot compile this: try that : foreach ($HTTP_POST_VARS as $key = $var){ print VAR: $var KEY = $key; } Regards, Andrey Hristov - Original Message - From: mweb [EMAIL PROTECTED] To: phplist [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:03 AM Subject: [PHP] HTTP_POST_VARS

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Jason
try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is

RE: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread De Necker Henri
/poese.txt $loc = ..//files//poese.txt -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 10:54 To: mweb; phplist Subject: Re: [PHP] HTTP_POST_VARS truncated try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread mweb
reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Christopher William Wesley
Name the form element without the brackets ... just whatdo instead of whatdo[]. When $whatdo[] makes it to your formhandler, it's an array. (You _could_ access $whatdo[0] ... but that may or may not be more confusing.) ~Chris /\

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Tom Rogers
Hi This works (save as whatdo.php) !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html headtitleWhatdo/title/head body ?php $rowcount = 2; $row = 0; //check for submit button pressed if($submit == Submit): while($row $rowcount): $postvar = whatdo-.$row;

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
My bad for typing it in from memory. I'd retyped it in a few times, so I thought i had it perfect. Here's the exact code: print_r ($HTTP_POSTVARS); // yeilds the array that I pasted down below if ($flag==process) { $whatdo = $HTTP_POSTVARS['whatdo']; print_r($what_do); // blank . . . for

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
Just an addendum, I changed it from radio buttons to a pop up menu p select name=whatdo[] id=whatdo option value=load selectedLoad/option option value=deleteDelete/option option value=changeChange Category/option /select

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-09 Thread Christopher William Wesley
On Fri, 9 Nov 2001, Lara J. Fabans wrote: The original form has a table where each row has a set of 3 radio buttons name=whatdo?php print $x?[] where $x is the row counter. Well, for a set of raido buttons, they should all have the same name. In your case, all 3 radio buttons should be

Re: [PHP] $HTTP_POST_VARS

2001-08-27 Thread Tim
while (list($k,$v) = each($HTTP_POST_VARS)) { echo br$k = $v; } On Mon, 2001-08-27 at 21:48, Andy Ladouceur wrote: Hello all, I am wondering if there is a command or function to get a list of all the current '$HTTP_POST_VARS[variable]' variables? Or, a user-created way... Any helps

RE: [PHP] $HTTP_POST_VARS

2001-08-27 Thread Jason Murray
I am wondering if there is a command or function to get a list of all the current '$HTTP_POST_VARS[variable]' variables? Or, a user-created way... Any helps appreciated, thanks! You can use var_dump($HTTP_POST_VARS); Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] $HTTP_POST_VARS

2001-08-27 Thread Andy Ladouceur
Ah, its that simple? -feels likea bit of an idiot- Thanks for the help! Tim [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... while (list($k,$v) = each($HTTP_POST_VARS)) { echo br$k = $v; } On Mon, 2001-08-27 at 21:48, Andy Ladouceur wrote: Hello all, I am

Re: [PHP] $HTTP_POST_VARS

2001-08-27 Thread Andy Ladouceur
Thanks! -Andy Jason Murray [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am wondering if there is a command or function to get a list of all the current '$HTTP_POST_VARS[variable]' variables? Or, a user-created way... Any helps appreciated, thanks! You

Re: [PHP] $HTTP_POST_VARS

2001-08-27 Thread pierre-yves
something like this... if( sizeof( $HTTP_POST_VARS ) 0 ){ // avoid error when no vars while ( list ( $key, $val ) = each ( $HTTP_POST_VARS )) { print br$key = $val; } } py - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] HTTP_POST_VARS not picking up checkboxes that areunchecked

2001-06-20 Thread Jens Nedal
The thing can do is as follows: When i want check such empty boxes, i call up the $HTTP_POST_VARS just like you. BUT what i do next ist that while listing those vars i insert an if statement like if (!strstr($key,checkbox_name)) {echo ($error);} So i do a stringmatch with the key and the

Re: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-20 Thread Hugh Bothwell
Tom Beidler [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form with approximately 40 input fields. When a form is posted it sends an email and then builds a tab delimited $txt entry for a text file on the server. The problem is that if a checkbox

RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-19 Thread Jason Murray
Subject: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked That's right - if the checkbox isn't checked the browser doesn't send it. Jason

Re: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-19 Thread Rasmus Lerdorf
The problem is that if a checkbox is not checked, when it's not required, I don't get a blank entry in my tab file for the checkbox input. I'm imploding my HTTP_POST_VARS variable like so; This has nothing to do with PHP. Your browser sends nothing for an unchecked checkbox. You would have

RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-19 Thread John Monfort
I had some issues with that recently. It turns out that PHP will not pick up the checkboxes, unless you use the GET method. You can then access your vars with HTTP_GET_VARS. This was discovered on WIN98+ PHP 4.03pl1 + Apache 1.3++ WIN ME + PHP 4.03pl1 + Apache 1.3++

RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unche cked

2001-06-19 Thread Merio, Quinn
, June 19, 2001 6:20 AM To: Jason Murray Cc: 'Tom Beidler'; [EMAIL PROTECTED] Subject: RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unche cked I had some issues with that recently. It turns out that PHP will not pick up the checkboxes, unless you use the GET method. You

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-18 Thread Alexander Skwar
So sprach Joseph Blythe am Wed, Apr 18, 2001 at 10:48:14AM +0930: Hey, Why doesn't HTTP_POST_VARS work inside functions? ---somefile.php - forms action --- function foo() { reset($HTTP_POST_VARS); Because this particular HTTP_POST_VARS is not the HTTP_POST_VARS you have outside

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Johannes Janson
Hi, this will list all your posted variables with name and the posted value. while (list($key, $value)=each($HTTP_POST_VARS) ) { echo "$key = $value br"; } Johannes ""Mat Marlow"" [EMAIL PROTECTED] schrieb im Newsbeitrag 9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Renze Munnik
Mat Marlow wrote: Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Plutarck
Quick answer: HTTP_POST_VARS is an associative array. The "name" of the submitted variables are the keys, and the value of the element is the value that was submitted. -- Plutarck Should be working on something... ...but forgot what it was. ""Mat Marlow"" [EMAIL PROTECTED] wrote in message

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-17 Thread Rasmus Lerdorf
I thought the above would work but it returns the following error(s): ... value passed to reset is not an array or object ... ... value passed to each is not an array or object ... It seems that HTTP_POST_VARS does not like being called from inside functions, as the above will work if not

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-17 Thread Joseph Blythe
Rasmus Lerdorf wrote: It is a normal global variable. Like all other global variables you need to declare the fact that you want the global variable inside a function. Simply put: global $HTTP_POST_VARS; at the top of your function and it will work just fine. Read the section on variable

RE: [PHP] HTTP_POST_VARS

2001-04-12 Thread Dominick Vansevenant
Mat, did you put in a reset? reset($HTTP_POST_VARS); D. -Original Message- From: Mat Marlow [mailto:[EMAIL PROTECTED]] Sent: donderdag 12 april 2001 16:49 To: [EMAIL PROTECTED] Subject: [PHP] HTTP_POST_VARS Hi all, I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I

Re: [PHP] HTTP_POST_VARS

2001-04-12 Thread Plutarck
Try doing a print_r in the place where you are trying to print data. So you can see if a second dimension slipped in there, or if there is some other problem. I know that the post/get vars are always associative arrays, but I assume refering to them by their numeric keys should work...don't see

RE: [PHP] HTTP_POST_VARS

2001-04-12 Thread Steve Edberg
At 4:50 PM +0200 4/12/01, Dominick Vansevenant [EMAIL PROTECTED] wrote: Mat, did you put in a reset? reset($HTTP_POST_VARS); D. Yes, you'll need the reset() there if you're looping through the $HTTP_POST_VARS array more than once. However: I take it that you were trying something like

Re: [PHP] $HTTP_POST_VARS

2001-03-13 Thread David Minor
I am having a similar problem as the original poster. In my case, I _want_ the second sumbission to overwrite the first, but it's not happening. What I have is a radio button list all named="update" each with it's own value (ie. 2,3,4,5,etc.). The form is self-submitting and tests on 'update'

Re: [PHP] $HTTP_POST_VARS

2001-03-13 Thread Dennis Gearon
Check your browser settings, I had this problem when I had the 'check page never' setting selected, and it went away when I set it to 'check every session' I am having a similar problem as the original poster. In my case, I _want_ the second sumbission to overwrite the first, but it's not

Re: [PHP] HTTP_POST_VARS

2001-03-12 Thread Yasuo Ohgaki
No. Check box and radio buttons are not set, though. Regards, -- Yasuo Ohgaki ""stas"" [EMAIL PROTECTED] wrote in message 026001c07cc4$aeaa6250$9701a8c0@snewdel">news:026001c07cc4$aeaa6250$9701a8c0@snewdel... Hello, Is it that correct that only non-empty variables get inserted into

RE: [PHP] $HTTP_POST_VARS

2001-03-08 Thread Jerry Lake
You're not setting a value for the first variable ie.."Name" unless you put something in the text box to represent the variable it will come across as empty. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online -