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;

[PHP] $_POST[]

2003-12-18 Thread Philip J. Newman
?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:

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

[PHP] $_POST[$variable]

2003-12-11 Thread Christian Jancso
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 =

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

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

2003-12-10 Thread ROBERT MCPEAK
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

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

[PHP] $_POST bug?

2003-11-12 Thread Jake McHenry
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

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

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

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

2003-10-16 Thread Jake McHenry
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

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

2003-10-16 Thread Peter Beckman
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

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

2003-10-16 Thread Adam Reiswig
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

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

2003-10-16 Thread BAO RuiXian
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 =

[PHP] $_POST problem

2003-07-09 Thread Micah Montoy
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

RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
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

Re: [PHP] $_POST problem

2003-07-09 Thread Micah Montoy
? 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

RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
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

Re: [PHP] $_POST problem

2003-07-09 Thread Micah Montoy
] 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

RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
/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

RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
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

RE: [PHP] $_POST problem

2003-07-09 Thread Philip Olson
? 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

RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
); -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

Re: [PHP] $_POST problem

2003-07-09 Thread Micah Montoy
... -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

RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
] 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

RE: [PHP] $_POST problem

2003-07-09 Thread Philip Olson
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

Re: [PHP] $_POST problem

2003-07-09 Thread myhan
: 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

RE: [PHP] $_POST problem SUPERGLOBALS

2003-06-29 Thread esctoday.com | Wouter van Vliet
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

RE: [PHP] $_POST problem SUPERGLOBALS

2003-06-29 Thread Philip Olson
: [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

[PHP] $_POST problem

2003-06-27 Thread Sparky Kopetzky
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

Re: [PHP] $_POST problem

2003-06-27 Thread Mark
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:

Re: [PHP] $_POST problem

2003-06-27 Thread Jason Wong
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*

[PHP] $_POST array

2003-06-02 Thread Steven Farrier
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 =

Re: [PHP] $_POST array

2003-06-02 Thread Rasmus Lerdorf
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

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

2003-02-25 Thread CF High
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,

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

2003-02-25 Thread Joshua Moore-Oliva
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

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

2003-02-25 Thread John W. Holmes
('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

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

2003-02-25 Thread CF High
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.

[PHP] $_POST index issues

2003-02-10 Thread James G Puckett
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

Re: [PHP] $_POST index issues

2003-02-10 Thread Ernest E Vogelsinger
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']\;

RE: [PHP] $_POST index issues

2003-02-10 Thread James G Puckett
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

[PHP] $_POST vars problem

2003-01-20 Thread Kenneth Brill
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;

Re: [PHP] $_POST vars problem

2003-01-20 Thread Chris Shiflett
--- 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

Re: [PHP] $_POST vars problem

2003-01-20 Thread Kenneth Brill
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

Re: [PHP] $_POST vars problem

2003-01-20 Thread Chris Shiflett
--- 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

RE: [PHP] $_POST vars problem

2003-01-20 Thread Ford, Mike [LSS]
-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

RE: [PHP] $_POST vars problem

2003-01-20 Thread David Freeman
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

[PHP] _POST incorrect output...

2002-11-13 Thread Brad Apps
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:

Re: [PHP] _POST _GET

2002-11-12 Thread Ernest E Vogelsinger
**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. :-)

Re: [PHP] _POST _GET

2002-11-12 Thread Charles Wiltgen
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:

Re: [PHP] _POST _GET

2002-11-12 Thread Chris Shiflett
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

[PHP] _POST _GET

2002-11-11 Thread GC
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

RE: [PHP] _POST _GET

2002-11-11 Thread Nick Richardson
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

Re: [PHP] _POST _GET

2002-11-11 Thread .: B i g D o g :.
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

RE: [PHP] _POST _GET

2002-11-11 Thread Nick Richardson
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

RE: [PHP] _POST _GET

2002-11-11 Thread John W. Holmes
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... --

Re: [PHP] _POST _GET

2002-11-11 Thread Greg
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

Re: [PHP] _POST _GET

2002-11-11 Thread Chris Shiflett
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

Re: [PHP] _POST _GET

2002-11-11 Thread Rasmus Lerdorf
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

Re: [PHP] _POST _GET

2002-11-11 Thread Chris Shiflett
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

Re: [PHP] _POST _GET

2002-11-11 Thread Rasmus Lerdorf
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

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread Scott Fletcher
$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

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread Erik Price
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 =

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread 1LT John W. Holmes
- 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

[PHP] $_POST into a formatted string, help!

2002-07-02 Thread php
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

Re: [PHP] $_POST into a formatted string, help!

2002-07-02 Thread Kevin Stone
, 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

Re: [PHP] $_POST into a formatted string, help!

2002-07-02 Thread Analysis Solutions
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

[PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Herbert Mraz
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?

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Miguel Cruz
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

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread 1LT John W. Holmes
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

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Herbert Mraz
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

<    1   2   3