Dears,I need to my program is waitting while
$HTTP_POST_VARS change
Please guide me..
=
-DIGITAL SIGNATURE---
///Mohsen Pahlevanzadeh
Network administrator & programmer
My home phone is: +98213810146
My email address is
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> {
Whats the advantage (or shall i say disadvantage )of passing form variables to a
function like shown below:
function function_name($var,$var1,$var2)
{
}
rather than passing the $HTTP_POST_VARS array to the fuction like:
function function_name($HTTP_POST_VARS)
{
}
Is any better than other? or
Hello,
I don't understand this code empty my HTTP_POST_VARS variable:
if ((get_magic_quotes_gpc() == 1)) {
switch ($REQUEST_METHOD) {
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$$key = stripslashes($val);
}
break;
case "GET":
while (list ($key, $v
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
ginal 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"
Thanks for all the replies. However, I still have problems as the following code
produces the following output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo "0: " . $userfile . "";
echo "1: " . $HTTP_POST_FILES['userfile']['size'] . "";
echo "2: " . $HTTP_POST_FILES['userfil
--- "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\\Desk
To: PHP <[EMAIL PROTECTED]>
Subject: [PHP] $HTTP_POST_VARS problem
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
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 Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir
echo $userf
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. Wh
Hi,
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 want to use
print $HTTP_POST_VARS["FirstName"];
instead?
Thanks
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 i
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 ?
Regards
Laurent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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"]);
>
To: [EMAIL PROTECTED]
Subject: [PHP] $HTTP_POST_VARS
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:
Both $HTTP_POST_VARS["interest"]
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:
Both $HTTP_POST_VARS["interest"] and $HTTP_POST_VARS["interest[]"] throw
errors. Any suggesti
Make the name of the select an array
e.g. http://www.chessish.com>
--
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: 08 February 2002 02:47
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP_POST_VARS problem
Please ignore
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
HTT
Hi. I'm a newbie at this and am having problems understanding how this
works.
I have a form with method="post". The server program does display
REQUEST_STRING as I expect (e.g., choice=yes but displaying
HTTP_POST_VARS["choice"] is null). However, displaying
HTTP_GET_VARS["choice"] does display "
Hello,
I'm attempting to make a function to which I can pass
my form variables, to wit:
clean_input($HTTP_POST_VARS);
which will run through the array and clean up the
variables. However, the passing by reference is giving
me the screaming fits. No matter what I do, I can't
seem to get the func
> reset($HTTP_POST_VARS);
>
> at the begining of the code. if that doesn't work verify your html again.
> make sure the '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 "
ory tree!
This also works both ways :
$loc = "../files/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
try:
reset($HTTP_POST_VARS);
at the begining of the code. if that doesn't work verify your html again.
make sure the '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 $k -
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: Fri
Hello,
To test the http/php setup on one of my computers I wrote a
very simple html form, with two select fields,
two text fields, and the submit field. Pushing submit the
data are sent via POST method to an extremely simple PHP
page which only contains something like:
foreach (var, key) in HTTP
On Mon, 26 Nov 2001, Martin Towell wrote:
> you said you tried a text field, have you tried a hidden field?
Alrighty then, my greenness shows. :)
The hidden field idea was perfect (never used one before).
Thank god I'm just playing around with my _own_ site. ;)
Thanks Martin!
Benny
~
nt: Monday, November 26, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP_POST_VARS, forms, and not allowing modifications.
Hey folks,
I am working on a database-driven site, and
have run into a problem. It's not a problem with any
existing code, more of a "how the heck do I do
Hey folks,
I am working on a database-driven site, and
have run into a problem. It's not a problem with any
existing code, more of a "how the heck do I do this"
sort of thing.
I have a table, that is generated from a database
query:
+---+---++--
Hey List-
Working on a program and I seem to have run into a problem with
HTTP_POST_VARS. Are the HTTP_VARS considered "special"?
Here is what I am doing, reading in from a file into an array and then
grabbing each line and looking for ]string[ and replacing that with
$HTTP_POST_VARS["stri
Hi
This works (save as whatdo.php)
Whatdo
";
$row++;
endwhile;
else:
?>
Row Options
Load
Delete
Change Category
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 /"\
Just an addendum, I changed it from radio buttons to a pop up menu
Load
Delete
Change Category
Again, if I print_r (HTTP_POST_VARS), I can see the Array ( [whatdo] =>
Array ( [0] => load [1] => delete), [other
s
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 (
Hi
Your whatdo's will be whatdo0 whatdo1...whatdox
You need to do like this if I understand what you are doing :)
$row=0;
while($row < $numofrows):
$var = "whatdo".$row;
$whatdo = $submitted_vars["$var"];
//do whatever with $whatdo
.
$row ++;
endwhile;
Tom
At 09:41 AM 10/11/01, La
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[]" 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 named "whatdo"
Hi,
I'm having some difficulties accessing HTTP_POST_VARS
The original form has a table where each row has a set of 3 radio
buttons name="whatdo[]" where $x is the row counter.
(I'm using PHP to pull info into a table, then the user manipulates
the info, and it places the info into 2 other ta
Is this a secure way to check if some
data comes from a form-field of the
previous page, or ist it possible to
fill it without submitting a form?
--
Jochen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 9:48 PM
Subject: [PHP] $HTTP_POST_VARS
> 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
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, thank
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 "$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 appreciated, thanks!
You can use var_dump($HTTP_POST_VARS);
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
while (list($k,$v) = each($HTTP_POST_VARS)) {
echo "$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 h
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 appreciated, thanks!
-Andy L.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
"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 ch
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 name..
y
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 can then access your var
you ready?"
-+___+-
On Tue, 19 Jun 2001, Jason Murray wrote:
> > 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
>
> 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 hav
> 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
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 is not checked, when it's not required, I
don't get a blank entry in my tab file for the checkbox i
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
9
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-mai
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 ";
}
Johannes
""Mat Marlow"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTE
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 PROTECTED]
For additional comman
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
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 var
> 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
Hey,
Why doesn't HTTP_POST_VARS work inside functions?
---somefile.php - forms action ---
function foo() {
reset($HTTP_POST_VARS);
while( list($key, $val) = each($HTTP_POST_VARS) ) {
if ( $key != "Submit" xor $key != "x" xor $key != "y" ) {
$inpu
In PHP3, POST/GET elements could only be one dimensional arrays, at
most. In PHP4, though, these can have 2+ dimensions, so for maximum
generality you'd have to have somewhat more complex code than this.
-steve
>-Original Message-
>From: Mat Marlow [mailto:[EMAI
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
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. Whene
Hi all,
I'm having trouble retrieving data from $HTTP_POST_VARS. Whenever I try to
print something from it using print($HTTP_POST_VARS[0]); it just prints
"Array". And I know it works because I've done it once and can't do it
again!
Am I missing something glaringly obvious?
Thanks for the help,
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 happ
riginal Message-
> From: mat t [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 08, 2001 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] $HTTP_POST_VARS
>
>
> Please can you help:
>
> I can't send duplicate input types to $HTTP_POST_VARS
> For example:
&g
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
HTTP_POS
Hello,
Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I
am trying to do server side form validations, and this represents a bit of difficulty
in terms of notifying a user about which fields are missing values.
, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $HTTP_POST_VARS
Please can you help:
I can't send duplicate input types to $HTTP_POST_VARS
For example:
---HTML---
First person:
NAME
Phone No.
Second Person:
NAME
Pho
line - http://www.pacifier.com
-Original Message-
From: mat t [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 2:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $HTTP_POST_VARS
Please can you help:
I can't send duplicate input types to $HTTP_POST_VARS
For example:
Please can you help:
I can't send duplicate input types to $HTTP_POST_VARS
For example:
---HTML---
First person:
NAME
Phone No.
Second Person:
NAME
Phone No.
---
Then when I use :
, February 20, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie: [PHP] $HTTP_POST_VARS
I dont think HTTP_POST_VARS is what your looking for I think its more
HTTP_SERVER_VARS
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
I dont think HTTP_POST_VARS is what your looking for I think its more
HTTP_SERVER_VARS
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""Phil Labonte"" <[EMAIL PROTECTED]> wrote in message
331AB909C797484B84CF8CF3C711BD4E0992A2@x
From: "Chris Lee" <[EMAIL PROTECTED]>
> I dont think HTTP_POST_VARS is what your looking for I think its more
> HTTP_SERVER_VARS
>
> echo $HTTP_SERVER_VARS['HTTP_HOST'];
> ?>
>
>
That should work but imho better practice is to use getenv():
This is especially useful inside a function, a
I have a Newbie question,
What is the syntax to get the info from HHTP_POST_VARS?
I mean what is the syntax to get the variable COMPUTERNAME for example or to
get HTTP_HOST?
Thanks
Phil Labonte
Systems Administrator
Atreus Systems
(p) 613-233-1741 x243
(c) 613-277-1697
[EMAIL PROTECTED]
--
Cesar Castoldi <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, February 15, 2001 1:44 PM
Subject: [PHP] $HTTP_POST_VARS
>reset($HTTP_POST_VARS);
>while (list($key, $val) = each($HTTP_POST_VARS)) {
> file://print "$key - $val";
> if (substr($key,
reset($HTTP_POST_VARS);
while (list($key, $val) = each($HTTP_POST_VARS)) {
//print "$key - $val";
if (substr($key,0,3) == "alt" or substr($key,0,3) == "exc")
Somebody can explain or indicate any site about this ($HTTP_POST_VARS)?
It is used to do menu in php. If the name of the butt
77 matches
Mail list logo