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

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 =

RE: [PHP] $_POST problem

2003-07-09 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try: $img_keywords = trim({$_POST[keywords]}); - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.developercube.com - -Original

Re: [PHP] $_POST problem

2003-07-09 Thread Micah Montoy
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\v_images\dsp_update_image.php on line

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
I want to know what is the difference between {} and the one without {}.:) I use {} to resolve many problems, but I do now know what is the difference:). thank you! Aaron Axelsen [EMAIL PROTECTED] ??:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try: $img_keywords =

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

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*

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

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.

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

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

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

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/) To

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
Hey, that is new to me! Thanks! FletchSOD Kevin Stone [EMAIL PROTECTED] wrote in message 01de01c22216$984c5740$6501a8c0@kevin">news:01de01c22216$984c5740$6501a8c0@kevin... Oh man I hope you don't shoot yourself when you realize how easy this is.. foreach ($_POST as $key = $val) { $str

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

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

2002-07-02 Thread Kevin Stone
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. -Kevin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 02,

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

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, the

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