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
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
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]
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
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
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
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
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
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
[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;
?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ?
Should $_POST[formReviewBy] have quotes or dose it not matter?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
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]
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
[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
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'];
echo form name='station_change' method='post'
action='station_change.php';
echo TABLE BORDER=0;
while ($status_array =
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
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
Has anybody seen the seemingly automatic and unexplained conversion of the character
. to _ in $_POST var names? I've tested several ways, with and without PHP, and
I've dug around in the HTML specs and can't find a good explanation. Can anybody shed
some light on this? Can this be
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
--- 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
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
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
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
-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
-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
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
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
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.
--- 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
-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
I have 5 fields, all 1 character in length, numbers being entered. If
zero's are entered in the boxes, and the form is submitted, the
corresponding $_POST variables are empty? Is there a way around this,
or am I doing something wrong?
I guess I could just do, if (isset(... Blah.. Then if it's not
-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
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
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
Adam Reiswig wrote:
Greetings to all. I am trying for the life of me to place a
$_POST[]
variable in my MySQL query. I am running the latest stable
versions of
PHP, MySQL and Apache 2 on my Win2kPro machine. My
register_globals are
set to off in my php.ini. My code I am attempting create
On Fri, 17 Oct 2003, BAO RuiXian wrote:
I see you can achieve this by two ways:
1. Take out all the inside quotes (single or double) like the following:
$sql=insert into $table set Name = $_POST[elementName];
This is bad. Using no quotes MAY work, but it is considered a BARE
Greetings to all. I am trying for the life of me to place a $_POST[]
variable in my MySQL query. I am running the latest stable versions of
PHP, MySQL and Apache 2 on my Win2kPro machine. My register_globals are
set to off in my php.ini. My code I am attempting create is basically
as
Adam Reiswig wrote:
$table=elements;
$sql=insert into $table set Name = '$elementName';
This works with register_globals set to on. But, I want to be able to
turn that off. My code then, I am guessing, be something as follows:
$table=elements;
$sql=insert into $table set Name =
Anyone see what when I submit this, I can't do a $_POST on it? I check with
the DB first to see if there is a value and if so, I fill it, otherwise, it
will return a blank for the user to fill if they want.
input type=text name=keywords value=?php echo($new_keywords); ?
size=53 maxlength=500
On
Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 10:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST problem
Anyone see what when I submit this, I can't do a $_POST on it? I
check with the DB first to see if there is a value and if so, I fill
it, otherwise
?
www.modevia.com
Web Dev/Design Community/Zine
www.developercube.com
- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 10:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST problem
Anyone see what when I submit this, I can't do a $_POST
anything unusual...
-Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem
Nope. That didn't do it. The errors I'm receiving are:
Notice: Undefined index: keywords in
c:\inetpub
]
Subject: Re: [PHP] $_POST problem
Nope. That didn't do it. The errors I'm receiving are:
Notice: Undefined index: keywords in
c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on
line 22 and
Notice: Undefined variable: img_keywords in
c:\inetpub\wwwroot\webpage10\example
/Design Community/Zine
www.developercube.com
- -Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:09 PM
To: 'Micah Montoy'; [EMAIL PROTECTED]
Subject: RE: [PHP] $_POST problem
Hey... Just for Sh** and giggles... Try removing the quotes from
Community/Zine
www.developercube.com
- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem
Didn't make a difference. Still getting the errors.
Joe Harman [EMAIL PROTECTED] wrote
?
www.modevia.com
Web Dev/Design Community/Zine
www.developercube.com
- -Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:09 PM
To: 'Micah Montoy'; [EMAIL PROTECTED]
Subject: RE: [PHP] $_POST problem
Hey... Just for Sh
);
-Original Message-
From: Aaron Axelsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:26 AM
To: 'Micah Montoy'; [EMAIL PROTECTED]
Subject: RE: [PHP] $_POST problem
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Whenever I call a vriable, I do something like $_POST['keyword']
Are you
...
-Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem
Nope. That didn't do it. The errors I'm receiving are:
Notice: Undefined index: keywords in
c:\inetpub\wwwroot
]
Sent: Thursday, July 10, 2003 12:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem
I found the error. Your all probably all going to kill me but on the
form itself, I didn't specify a method. Sometimes I think I've been
looking at a screen way to long.
thanks for all your help
On Thu, 10 Jul 2003, Joe Harman wrote:
Yeah, me too... LOL... Although, I don't understand the curly
brackets... I don't see any examples using them in the manual either...
Actually, the manual is pretty clear on this, and with tons
of examples:
http://www.php.net/types.string
: Wednesday, July 09, 2003 10:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST problem
Anyone see what when I submit this, I can't do a $_POST on it? I
check with the DB first to see if there is a value and if so, I fill
it, otherwise, it will return a blank for the user to fill if they
want
of the biggest free open
air pop festivals I think in Europe.. just around the corner of my house
here in The Hague.
Salutes,
Wouter
-Oorspronkelijk bericht-
Van: Jason Wong [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 27 juni 2003 22:46
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] $_POST problem
: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] $_POST problem
On Saturday 28 June 2003 04:32, Sparky Kopetzky wrote:
I've got my script kinda running but am unable to retrieve any values with
$_POST. I turned on register_globals in the php.ini and am using this url:
If you're going to be using
Hi, it's me again...
I've got my script kinda running but am unable to retrieve any values with $_POST. I
turned on register_globals in the php.ini and am using this url:
http://www.fttta.com/auction.php?action=reg. (Sorry, it's local for now...)
I'm using this kind of line to check for
You need to use $_GET, not $_POST, if the varaibles are passed in the
URL.
--- Sparky Kopetzky [EMAIL PROTECTED] wrote:
Hi, it's me again...
I've got my script kinda running but am unable to retrieve any
values with $_POST. I turned on register_globals in the php.ini and
am using this url:
On Saturday 28 June 2003 04:32, Sparky Kopetzky wrote:
I've got my script kinda running but am unable to retrieve any values with
$_POST. I turned on register_globals in the php.ini and am using this url:
If you're going to be using $_POST (which you should) then you should
*disable*
I have tried using $_POST array variables in the following ways
$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']);
$message =
You should read this section of the manual:
http://us2.php.net/manual/en/language.types.string.php
Scroll down the the Variable parsing title and read from there and all
will be clear.
-Rasmus
On Sun, 1 Jun 2003, Steven Farrier wrote:
I have tried using $_POST array variables in the
Hey all.
Got a problem with this sql statement -- php vars are evaluated (e.g. the
$date var), but not the $_POST arrays..
All of the arrays return correct values -- What am I missing here?
$sql = INSERT into rosters (school_id, sport_id, date, jersey_id, first,
last, position, grade,
I believe that single quotes will display exactly what you type in, and double
quotes will actually process it.. e.g.
$foo = hello;
echo '$foo';
You see $foo
echo $foo;
You see hello
On February 25, 2003 09:42 pm, CF High wrote:
Hey all.
Got a problem with this sql statement -- php vars
('1','1','$date','$_POST['jersey_id'][$x]','$_POST['first'][$x]','$_POST
['
Let's just be smart and think about this for a second. Look at all of
the single quotes you've got. How do you expect PHP to be able to tell
what's a variable and what's text? Do you mean $_POST or
$_POST['jersey_id'] or
Hey John et. al
I tried your method John, and it works!
Re: excessive single quotes in the sql, but I tried stripping them out to no
effect. Using curly braces in the sql statement wasn't an option I knew
about. Thanks again for illuminating another bit of the PHP world.
I have run into a problem with some of my code surrounding $_POST.
Below are excepts:
Sending PHP script (login.php)
FORM METHOD=POST ACTION=/verify_login.php
BIUsername/B/I
INPUT NAME=username_given SIZE=20
BIPassword/B/I
INPUT NAME=password_given
At 16:47 10.02.2003, James G Puckett spoke out and said:
[snip]
echo !-- username_given == $_POST['username_given'] --\n;
$query = select username, active, password, clec_id from users
where USERNAME=\$_POST['username_given']\;
This indeed was the problem. Case closed.
Thanks for the help.
James G Puckett
ECG, Inc.
-Original Message-
From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 10:55 AM
To: James G Puckett
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST index
I just changed my server to SSL, everything worked before that. now if I
have a form with an input box (named searchstring for example) with a
value of TEST, when that form is posted (submitted) I get the following:
foreach($_POST as $key = $value) {
echo [POST]Key: '$key'; Value: '$value'br\n;
--- Kenneth Brill [EMAIL PROTECTED] wrote:
can anyone tell me where the second
searchstring=TEST is coming from? I
have tried register globals on and off.
Can you also show us the HTML for your form on the previous
page? The simplest test case that produces this problem
would be best.
Chris
I will try to shortly. The server in question is password protected and has
lot of information I don;t need hacked into right now. I'll set up a
limited short term account and post everything then.
On another note, I have found that if I include (and use) the submit button
everything works
--- Kenneth Brill [EMAIL PROTECTED] wrote:
I will try to shortly. The server in question is
password protected and has lot of information I
don;t need hacked into right now. I'll set up a
limited short term account and post everything then.
So you do not have access to the server that has
-Original Message-
From: Kenneth Brill [mailto:[EMAIL PROTECTED]]
Sent: 20 January 2003 15:53
I just changed my server to SSL, everything worked before
that. now if I
have a form with an input box (named searchstring for
example) with a
value of TEST, when that form is posted
On another note, I have found that if I include (and use)
the submit button
everything works perfectly, HOWEVER if I just enter data and
hit return then it messes up.
You could try including a hidden submit field like this:
input type=hidden name=submit value=1
For name=submit change
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
**WARNING** longer post that usual **WARNING** longer post that usual
**WARNING**
At 07:54 12.11.2002, Chris Shiflett said:
[snip]
Anyway, thanks for your insight. Some of these slightly off-topic issues
are more interesting than the on-topic ones. :-)
Ernest E Vogelsinger wrote...
Sorry for the long post, but I believe it is important to have a look at the
relevant standards from time to time.
Very informative, thanks!
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ernest E Vogelsinger wrote:
At 07:54 12.11.2002, Chris Shiflett said:
[snip]
Anyway, thanks for your insight. Some of these slightly off-topic issues
are more interesting than the on-topic ones. :-) Maybe our community
needs a historian to collect
Hi-
Can I use both _GET and _POST in the same php file? Thanks!!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yes
-Original Message-
From: GC [mailto:gregchagnon;hotmail.com]
Sent: Monday, November 11, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] _POST _GET
Hi-
Can I use both _GET and _POST in the same php file? Thanks!! -Greg
--
PHP General Mailing List (http://www.php.net
Basically your form is going to use one or the other
you might be able to do this...
form action=file.php?op=submit method=post name=someform
/form
Then you can use _GET to get the op=submit and use _POST for the form...
never tried so i do not know...but in theory it should work...
On
To: GC
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] _POST _GET
Basically your form is going to use one or the other
you might be able to do this...
form action=file.php?op=submit method=post name=someform /form
Then you can use _GET to get the op=submit and use _POST for the form...
never tried
Hi-
Can I use both _GET and _POST in the same php file? Thanks!!
-Greg
Yes, you can use both in your code, but only one method is going to be
valid when your page is requested by a user. A user can't request a page
with both a GET and POST request at the same time.
---John Holmes...
--
Thanks everyone :)
-Greg
John W. Holmes [EMAIL PROTECTED] wrote in message
news:001f01c289b9$bebdf3b0$7c02a8c0;coconut...
Hi-
Can I use both _GET and _POST in the same php file? Thanks!!
-Greg
Yes, you can use both in your code, but only one method is going to be
valid when your page is
John W. Holmes wrote:
Can I use both _GET and _POST in the same php file? Thanks!!
Yes, you can use both in your code, but only one method is going to be
valid when your page is requested by a user. A user can't request a page
with both a GET and POST request at the same time.
It is
ColdFusion developers are more familiar with the URL/form distinction
than the get/post one, as the former are variable scopes. PHP developers
generally use the get/post distinction due to the arrays $_GET and
$_POST. As I understand it, mod_perl developers do not distinguish the
two, though
Rasmus Lerdorf wrote:
ColdFusion developers are more familiar with the URL/form distinction
than the get/post one, as the former are variable scopes. PHP developers
generally use the get/post distinction due to the arrays $_GET and
$_POST. As I understand it, mod_perl developers do not
I prefer PHP's naming convention, but then I cannot claim to be
impartial. :-) The use of get/post comes directly from the form tag you
mention (you mean HTML spec though, right?)
Well, no, the HTTP spec specifies the primitive request methods as being
GET, PUT, POST, DELETE, HEAD, OPTIONS and
$str .= $key=$val;
}
Then just crop the first char off and there you go.
-Kevin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 4:10 PM
Subject: [PHP] $_POST into a formatted string, help!
Hello,
I need to ge
Oh man I hope you don't shoot yourself when you realize how easy this
is..
foreach ($_POST as $key = $val)
{
$str .= $key=$val;
}
Then just crop the first char off and there you go.
Even easier, though maybe requiring a tiny bit extra memory to deal with
the array:
$arr =
- Original Message -
From: Erik Price [EMAIL PROTECTED]
foreach ($_POST as $key = $val)
{
$str .= $key=$val;
}
Make sure you define $str = ; before it enters the loop, othewise you'll
throw some warnings if your error reporting level is set high. It's because
$str is
Hello,
I need to get _$POST into a string in this form:
tree=greensky=bluesun=yellow , how can i accomplish this?
THanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, 2002 4:10 PM
Subject: [PHP] $_POST into a formatted string, help!
Hello,
I need to get _$POST into a string in this form:
tree=greensky=bluesun=yellow , how can i accomplish this?
THanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On Tue, Jul 02, 2002 at 04:19:50PM -0600, Kevin Stone wrote:
Oh man I hope you don't shoot yourself when you realize how easy this is..
foreach ($_POST as $key = $val)
{
$str .= $key=$val;
}
But, don't forget the post may contain spaces or other characters which
will trip up a URI, so
Strange problem here (win2k - iis 5.0 - php 4.2.0):
whenever I send formdata by POST-method, the last character gets
stripped...everything's fine when I use GET!
I tried various different (HTML-) input types, same everywhere...
register_globals is off, which shouldn't make a difference?
On Mon, 29 Apr 2002, Herbert Mraz wrote:
Strange problem here (win2k - iis 5.0 - php 4.2.0):
whenever I send formdata by POST-method, the last character gets
stripped...everything's fine when I use GET!
I tried various different (HTML-) input types, same everywhere...
Can you show a
example code?
- Original Message -
From: Herbert Mraz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 4:00 PM
Subject: [PHP] $_POST[] - last character cut away!!
Strange problem here (win2k - iis 5.0 - php 4.2.0):
whenever I send formdata by POST-method
HTML - body contains:
form method=post action=test.php
input type=text name=foo
input type=submit
/form
test.php contains:
?
echo $_POST['foo'];
?
when I type in: 'example'
test.php echoes : 'exampl'
string-length doesn't matter...
On Mon, 29 Apr 2002, Herbert
201 - 295 of 295 matches
Mail list logo