Re: [PHP] POST action

2013-08-01 Thread Robert Cummings
On 13-08-01 05:14 PM, Paul M Foster wrote: On Thu, Aug 01, 2013 at 02:35:04PM -0500, Larry Garfield wrote: [snip] So you're writing your own form tags for each specific time you need a form, or you wrote your own form builder API that is writing the form tags for you? Unless my wife creates

Re: [PHP] POST action

2013-08-01 Thread Paul M Foster
On Thu, Aug 01, 2013 at 02:35:04PM -0500, Larry Garfield wrote: [snip] > > So you're writing your own form tags for each specific time you need > a form, or you wrote your own form builder API that is writing the > form tags for you? Unless my wife creates the form in Dreamweaver, I write the H

Re: [PHP] POST action

2013-08-01 Thread Larry Garfield
On 7/29/13 3:02 PM, Paul M Foster wrote: On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] Except as noted above. This is all home-grown, using native PHP function

Re: [PHP] POST action

2013-07-29 Thread Paul M Foster
On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: > On 7/28/13 9:23 PM, Paul M Foster wrote: > >On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] > > > >Except as noted above. This is all home-grown, using native PHP > >functions designed to do these things, an

Re: [PHP] POST action

2013-07-29 Thread Larry Garfield
On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 'security ha

Re: [PHP] POST action

2013-07-28 Thread Paul M Foster
On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: > On 07/28/2013 12:38 PM, Ashley Sheridan wrote: > >On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: > > > >> > >>Never write your own form? I'm guilty - oh, so guilty. What exactly is > >>a 'security hardened' form? > > - All f

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 'security hardened' form? - All forms need a valid CSRF token to avoid CSRF attacks. This needs to be matched betwee

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:51 PM, Jim Giner wrote: On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can ha

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: > On 07/28/2013 12:14 PM, iccsi wrote: >> >> Your name: >> Your age: >> >> In the PHP tutorial manual, it says that we can have post >> action to the

Re: [PHP] POST action

2013-07-28 Thread Ashley Sheridan
On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: > On 7/28/2013 1:26 PM, Larry Garfield wrote: > > On 07/28/2013 12:14 PM, iccsi wrote: > >> > >> Your name: > >> Your age: > >> > >> In the PHP tutorial manual, it says that we can have post > >> action to the form itself just like above codi

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file,

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut

[PHP] POST action

2013-07-28 Thread iccsi
Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut not 2 files foe POST request,Your help

Re: [PHP] $POST and $_SESSION

2012-03-17 Thread sono-io
On Mar 15, 2012, at 11:52 AM, Stuart Dallas wrote: > Change your php.ini settings to log to a file and set display_errors to off. Sometimes when you ask a stupid question you end up getting a brilliant answer. I had no idea about any of this until I received your response, which got me

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Adam Richardson
On Thu, Mar 15, 2012 at 11:04 AM, Tedd Sperling wrote: > Hi gang: > > What's a better/shorter way to write this? > > $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; > $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : > $first_name; > $_SESSION['first_name'

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Ashley Sheridan
On Thu, 2012-03-15 at 18:52 +, Stuart Dallas wrote: > On 15 Mar 2012, at 18:48, sono...@fannullone.us wrote: > > > On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote: > > > >> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: > >>> > >>> The @ prefix is banned from all code I go anywhere n

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Stuart Dallas
On 15 Mar 2012, at 18:48, sono...@fannullone.us wrote: > On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote: > >> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: >>> >>> The @ prefix is banned from all code I go anywhere near - it's evil! >> >> For the most part, I agree with you, > >

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread sono-io
On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote: > On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: >> >> The @ prefix is banned from all code I go anywhere near - it's evil! > >For the most part, I agree with you, Hmm... I use it on my web pages (unless I'm testing) so that i

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Stuart Dallas
On 15 Mar 2012, at 18:35, Daniel Brown wrote: > On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: >> >> The @ prefix is banned from all code I go anywhere near - it's evil! I've >> used the following 'V' function for a long time, primarily for accessing the >> superglobals but it works for a

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Daniel Brown
On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: > > The @ prefix is banned from all code I go anywhere near - it's evil! I've > used the following 'V' function for a long time, primarily for accessing the > superglobals but it works for any array. > > session_start(); > $_SESSION['first_nam

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Stuart Dallas
On 15 Mar 2012, at 18:31, Stuart Dallas wrote: > On 15 Mar 2012, at 15:13, Daniel Brown wrote: > >> On Thu, Mar 15, 2012 at 11:04, Tedd Sperling wrote: >>> Hi gang: >>> >>> What's a better/shorter way to write this? >>> >>> $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Stuart Dallas
On 15 Mar 2012, at 15:13, Daniel Brown wrote: > On Thu, Mar 15, 2012 at 11:04, Tedd Sperling wrote: >> Hi gang: >> >> What's a better/shorter way to write this? >> >> $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; >> $first_name = isset($_POST['first_name']) ? $_POST['f

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Michael Save
How about this? $first_name = @$_POST['first_name'] or $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; Thanks, Michael On Fri, Mar 16, 2012 at 2:13 AM, Daniel Brown wrote: > On Thu, Mar 15, 2012 at 11:04, Tedd Sperling wrote: >> Hi gang: >> >> What's a better/shorter wa

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Daniel Brown
On Thu, Mar 15, 2012 at 11:04, Tedd Sperling wrote: > Hi gang: > > What's a better/shorter way to write this? > > $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; > $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : > $first_name; > $_SESSION['first_name'] =

[PHP] $POST and $_SESSION

2012-03-15 Thread Tedd Sperling
Hi gang: What's a better/shorter way to write this? $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : $first_name; $_SESSION['first_name'] = $first_name; Cheers, tedd _

Re: [PHP] Post and Redirect

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 13:26 -0600, Shawn McKenzie wrote: > I remembered seeing this question on the list several times in the past, > so I thought I would post something I just hacked up for someone. > > As we know, we can user header() to redirect the browser, but of course > we can't redirect t

[PHP] Post and Redirect

2010-02-26 Thread Shawn McKenzie
I remembered seeing this question on the list several times in the past, so I thought I would post something I just hacked up for someone. As we know, we can user header() to redirect the browser, but of course we can't redirect the browser and have it post data to the new page. If you need to do

Re: [PHP] POST without POSTing

2009-10-01 Thread Ben Dunlap
> to make sure the user has properly filled out this form. So I have to > validate it. That's done in the background on the server, naturally. But > once the validating is done, it's time to send the user off to the > secure site with a payload of POST variables. At that point, the user > will ente

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:23:46PM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > > > Okay, I've figured out how to shove the data through cURL to the > > receiving URL, but then it occurred to me that the client browser must > > go there *as well*. > > > > Wi

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > Okay, I've figured out how to shove the data through cURL to the > receiving URL, but then it occurred to me that the client browser must > go there *as well*. > > Will curl_exec() do that on its own, or is there a parameter I need to > feed i

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-10-01 Thread Kirk . Johnson
Paul M Foster wrote on 09/30/2009 09:29:17 PM: > [PHP] POST without POSTing > > Paul M Foster > > to: > > php-general > > 09/30/2009 09:31 PM > > I have a form that collects certain info via POST. It is re-entrant, so > when the user hits the "sub

Re: [PHP] POST without POSTing

2009-10-01 Thread Tommy Pham
- Original Message > From: Daniel Brown > To: Paul M Foster > Cc: php-general@lists.php.net > Sent: Wednesday, September 30, 2009 9:58:18 PM > Subject: Re: [PHP] POST without POSTing > > On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > > > fsoc

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:24:41 -0400 Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster > wrote: > > > > However, assuming it *wasn't*, I've found the following example > > from a google search (thank goodness for google's "hinting" or I > > couldn't have found it): > > > > $fp = fso

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > fsockopen() appears to be part of the standard network functions in PHP, > like the header() function. Do you mean that many hosts support the > function (as part of PHP) but don't support its use with external hosts? > Is there a way to deter

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Thu, Oct 01, 2009 at 12:24:41AM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > > > However, assuming it *wasn't*, I've found the following example from a > > google search (thank goodness for google's "hinting" or I couldn't have > > found it): > > > > $fp

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:16:27 -0400 Paul M Foster wrote: > On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > > > On Wed, Sep 30, 2009 at 23:29, Paul M Foster > > wrote: > > > > > > I'm not sure how to do this. Please no exotic external libraries > > > my shared hosting provider does

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > However, assuming it *wasn't*, I've found the following example from a > google search (thank goodness for google's "hinting" or I couldn't have > found it): > > $fp = fsockopen("www.site.com", 80); > fputs($fp, "POST /script.php HTTP/1.0 > Ho

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > I'm not sure how to do this. Please no exotic external libraries my > shared hosting provider doesn't include. RTFM will be fine; just tell me > which Fine Manual to Read. Nothing too exotic at all, Paul. Check out cURL: http://php

[PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
I'm sure this has been covered before, but I'm not even sure how to search in the archives for it. I have a form that collects certain info via POST. It is re-entrant, so when the user hits the "submit" button, it checks the input and does whatever sanity checks it needs to. If all is okay, it mus

[PHP] POST php://input

2008-03-12 Thread sinseven
Hello All, ?I'm doing a POST using httpwebrequest in a Pocket PC C# application to send a file over a stream buffer to a php page on an Apache server. I'm able to not only get ?variablename=value via a $_REQUEST, but also the entire file over php://input. It all works, I'm just not sure it's pr

Re: [PHP] POST/GET into variables

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 3:59 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > >> I don't think making a single generic function to iterate over every > >> value in the GET/POST a

Re: [PHP] POST/GET into variables

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > >> I don't think making a single generic function to iterate over every >> value in the GET/POST arrays is a very good idea. Each field on a >> form can contain very differen

[Fwd: Re: [PHP] POST/GET into variables]

2008-01-21 Thread Jochem Maas
rectified ;-) Originele bericht On Jan 21, 2008 11:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: yeah - you'll get used to it, mostly. it happens to everyone that they seem to be getting replies to things they didn't write - I was responding to the OP in this case - adding to

Re: [PHP] POST/GET into variables

2008-01-21 Thread Nathan Nobbe
On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > I don't think making a single generic function to iterate over every > value in the GET/POST arrays is a very good idea. Each field on a > form can contain very different pieces of data that should be handed > quite differently.

Re: [PHP] POST/GET into variables

2008-01-21 Thread Jochem Maas
Eric Butera schreef: ... then from client space you would just say InputFilter::filterInput(); then, subsequently you can use $_POST and $_GET directly with the assumption that the input has been escaped. BAD! assuming $_GET/$_POST are sanitized and escaped is always wrong. stick cleaned/val

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > > > how does this look? should this by me calling ... myforms = new > > forms(); work by turning all key/value pairs for both get and post > > into variable nam

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > im trying to keep this php4 OOP. im just trying to clean the post/gets > and then make them all into variables with their names being the keys > to the get/post, and their values as the variables values. > > ie: $_POST['someFor

Re: [PHP] POST/GET into variables

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > im trying to keep this php4 OOP. im just trying to clean the post/gets > and then make them all into variables with their names being the keys > to the get/post, and their values as the variables values. then all you have to

Re: [PHP] POST/GET into variables

2008-01-20 Thread nihilism machine
im trying to keep this php4 OOP. im just trying to clean the post/gets and then make them all into variables with their names being the keys to the get/post, and their values as the variables values. ie: $_POST['someFormInputName'] = "somevalue" ... turns into $someFormInputName = "somevalue"

Re: [PHP] POST/GET into variables

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > how does this look? should this by me calling ... myforms = new > forms(); work by turning all key/value pairs for both get and post > into variable names of the same name as the get/post key, and the > variable values as the v

[PHP] POST/GET into variables

2008-01-20 Thread nihilism machine
how does this look? should this by me calling ... myforms = new forms(); work by turning all key/value pairs for both get and post into variable names of the same name as the get/post key, and the variable values as the values from the post/get? class forms { // Some stuff

Re: [PHP] POST adding extra characters

2007-06-20 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Thanks Jim worked a treat - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 21, 2007 4:03 AM Subject: Re: [PHP] POST adding extra characters [EMAIL PROTECTED] wrote: Hi.. when u

Re: [PHP] POST adding extra characters

2007-06-20 Thread chris
Thanks Jim worked a treat - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 21, 2007 4:03 AM Subject: Re: [PHP] POST adding extra characters [EMAIL PROTECTED] wrote: Hi.. when using POSTon a text box t

Re: [PHP] POST adding extra characters

2007-06-20 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Hi.. when using POSTon a text box to send info its adding an extra \ character. dry-run: filter: account-id = '10002' select: key That information is then written to a text file with.. $msg = $ud_save; $f = fopen("file.txt", 'w'); fwrite($f, $msg); fclose($f); W

Re: [PHP] post via text message?

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 9:14 am, blackwater dev wrote: > I'm working on a site where I need to allow someone to send me a text > message and let the code take their message and respond or post it in > the > db. Can someone point me in the right direction on how this is done? You mean like a cellph

[PHP] post via text message?

2007-04-16 Thread blackwater dev
I'm working on a site where I need to allow someone to send me a text message and let the code take their message and respond or post it in the db. Can someone point me in the right direction on how this is done? Thanks!

Re: [PHP] POST + QUERY

2007-03-28 Thread Dan Shirah
using mssql_fetch_assoc worked out great. I had actually typed it in before but the code formatting didn't change the color of the text like it normally does for my mssql functions so I assumed it wasn't valid and deleted it. Thanks to everyone for your help! On 3/27/07, Jim Lucas <[EMAIL PROT

Re: [PHP] POST + QUERY

2007-03-27 Thread Jim Lucas
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id = $_POST['

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 17.28-kor Dan Shirah ezt írta: > Here are the results of my print_r > > Array ( [0] => 121 [1] => Y [2] => DS [3] => [4] => {03} > [5] => 500 [6] => *** *[7] => John* [8] => Mark [9] => Doe [10] => 123 My > Way [11] => 456 Your Place [12] => Smithvil

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
I would try an echo $my_info[7]; []s Em Terça 27 Março 2007 18:28, Dan Shirah escreveu: > Here are the results of my print_r > > Array ( [0] => 121 [1] => Y [2] => DS [3] => [4] => {03} > [5] => 500 [6] => *** *[7] => John* [8] => Mark [9] => Doe [10] => 123 My > Way [11] => 45

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Here are the results of my print_r Array ( [0] => 121 [1] => Y [2] => DS [3] => [4] => {03} [5] => 500 [6] => *** *[7] => John* [8] => Mark [9] => Doe [10] => 123 My Way [11] => 456 Your Place [12] => Smithville [13] => 12345 [14] => 5432 [15] => 123555

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Here is the result from the Once again, bold and red is the first_name field. array(28) { [0]=> int(122) [1]=> string(1) "Y" [2]=> string(2) "DS" [3]=> string(16) "" [4]=> string(4) "{03}" [5]=> float(500) [6]=> string(4) "*** " *[7]=> string(4) "John"* [8]=>

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Here are the results of my print_r Array ( [0] => 121 [1] => Y [2] => DS [3] => [4] => {03} [5] => 500 [6] => *** *[7] => John* [8] => Mark [9] => Doe [10] => 123 My Way [11] => 456 Your Place [12] => Smithville [13] => 12345 [14] => 5432 [15] => 123555 [16] => 1235550011 [17

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 17.17-kor Dan Shirah ezt írta: > echo $row_info['first_name']; returns nothing. > > However I have verified the correct spelling both in the database and > in the PHP code and they are identical and when I print_r it shows > that there is a value in the first_name

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Have you tried use number instead name? Something like: echo $row_info[0]; On mysql, you've mysql_fetch_object... Does has anything like this on MS Sql Server? best regards... Em Terça 27 Março 2007 18:17, Dan Shirah escreveu: > echo $row_info['first_name']; returns nothing. > > However I ha

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Send us the output of print_r($row_info) feel free to mask out any data values you may wish. Dan Shirah wrote: echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it shows

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it shows that there is a value in the first_name column of the record. On 3/27/07, Zoltán Németh <[EMAIL PROTECTED]> wro

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 16.56-kor Dan Shirah ezt írta: > Sorry, had a typo. > > *$cc_first = $row_info['first_name']; > echo "$cc_first";* > this echo returns nothing. and what does echo $row_info['first_name']; print out? if still nothing, then probably 1) you misspelled the field name

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 16.56-kor Dan Shirah ezt írta: > print_r($row_info) display the entire column contents of the select id > > However, > > *$first = $row_info['first_name']; > echo "$cc_first";* > > the above echo still returns nothing. yeah because you assign that value to $first,

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Sorry, had a typo. *$cc_first = $row_info['first_name']; echo "$cc_first";* this echo returns nothing. On 3/27/07, Dan Shirah <[EMAIL PROTECTED]> wrote: print_r($row_info) display the entire column contents of the select id However, *$first = $row_info['first_name']; echo "$cc_first";* the

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
print_r($row_info) display the entire column contents of the select id However, *$first = $row_info['first_name']; echo "$cc_first";* the above echo still returns nothing. On 3/27/07, Davi <[EMAIL PROTECTED]> wrote: Em Terça 27 Março 2007 17:40, Dan Shirah escreveu: > I have echoed somethin

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Em Terça 27 Março 2007 17:40, Dan Shirah escreveu: > I have echoed something out after virtually every line of code :) > > When I echo out my result ($result_info) it returns Resource id#2 > When I echo out my row ($row_info) it returns Array > > When I try to echo out a field from my array($my_inf

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Echo $info where you hold you query, to make sure that is reasonable. $result_info is the result set. $row_info ...well you can use var_dump() on this to get its contents... but if row_info prints out nothing, then there is probably a problem with the query, or your query is returning nothing..

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
I have echoed something out after virtually every line of code :) When I echo out my result ($result_info) it returns Resource id#2 When I echo out my row ($row_info) it returns Array When I try to echo out a field from my array($my_info) it returns nothing at all. On 3/27/07, Brad Bonkoski <[

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Should I use something besides mssql_fetch_row to get my result? No matter which method I use for determining if the value exists, I still get no data populated to my form. Why not echo out your query before executing it, so you can run it against the back end if you have it

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 15.58-kor Dan Shirah ezt írta: > Okay, I thought this was VERY simple, but I cannot wrap my mind around what > I am doing wrong. > > > echo $_POST['max_id']; *The echo returns the correct result > *if($_POST['max_id'] ='') { *This is suppose to run the below query

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Should I use something besides mssql_fetch_row to get my result? No matter which method I use for determining if the value exists, I still get no data populated to my form. On 3/27/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/27/07, Davi <[EMAIL PROTECTED]> wrote: > Em Terça 27 Março 2007 17:

Re: [PHP] POST + QUERY

2007-03-27 Thread Tijnema !
On 3/27/07, Davi <[EMAIL PROTECTED]> wrote: Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: > use: $_POST['max_id'] == > > or even better: > > if (empty($_POST['max_id'])) Why not: if (!(isset($_POST["max_id"))) ? If form is left empty, it is set, but it's stil empty. So if you submit

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Davi wrote: Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: use: $_POST['max_id'] == or even better: if (empty($_POST['max_id'])) Why not: if (!(isset($_POST["max_id"))) ? I think the poster *needs* the value to be set to something... so if (isset(...)) {} would work or

Re: [PHP] POST + QUERY

2007-03-27 Thread Dave Goodchild
Because isset will return true if the variable is set, even if it is blank. Empty will return true is the variable holds an empty string.

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
So I was dancing all around it by trying !== and = but did not try != /??? UGH! On 3/27/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/27/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Okay, I thought this was VERY simple, but I cannot wrap my mind around what > I am doing wrong. > > > ec

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: > use: $_POST['max_id'] == > > or even better: > > if (empty($_POST['max_id'])) Why not: if (!(isset($_POST["max_id"))) ? -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- Agora com fortune: "Around computers it is difficult to find th

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id = $_POST[

Re: [PHP] POST + QUERY

2007-03-27 Thread Tijnema !
On 3/27/07, Dan Shirah <[EMAIL PROTECTED]> wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] i

Re: [PHP] POST + QUERY

2007-03-27 Thread Davi
Em Terça 27 Março 2007 16:58, Dan Shirah escreveu: > Okay, I thought this was VERY simple, but I cannot wrap my mind around what > I am doing wrong. > > > echo $_POST['max_id']; *The echo returns the correct result > *if($_POST['max_id'] ='') { *This is suppose to run the below query if > $_POST[

Re: [PHP] POST + QUERY

2007-03-27 Thread Dave Goodchild
use: $_POST['max_id'] == or even better: if (empty($_POST['max_id']))

[PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id = $_POST['max_id']; *Sets my

Re: [PHP] POST a variable

2007-03-23 Thread Richard Lynch
On Fri, March 23, 2007 10:07 am, Dan Shirah wrote: > The reason I have to use it as I posted is because I am using > Microsoft SQL > server instead of MySQL. And I haven't found a php function for MSSQL > that > works the same as mysql_insert_id() I guarantee that there is a way to do it in MSSQL

Re: [PHP] POST a variable

2007-03-23 Thread Richard Lynch
On Fri, March 23, 2007 9:45 am, Dan Shirah wrote: > Okay, I feel like the correct answer to this is about 2mm back in my > grey > matter. > > 1. I have a query that pulls the last row number when a newly inserted > record is added: > > $maximum="SELECT MAX(payment_id) FROM payment_request"; > $ma

Re: [PHP] POST a variable

2007-03-23 Thread Børge Holen
On Friday 23 March 2007 15:45, Dan Shirah wrote: > Okay, I feel like the correct answer to this is about 2mm back in my grey > matter. > > 1. I have a query that pulls the last row number when a newly inserted > record is added: > > $maximum="SELECT MAX(payment_id) FROM payment_request"; > $max_r

Re: [PHP] POST a variable

2007-03-23 Thread Dan Shirah
: "Dan Shirah" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: "php-general" Sent: Friday, March 23, 2007 7:48 PM Subject: Re: [PHP] POST a variable Sorry, I was more tailoring my question to the syntax of my query. It wasn't disp

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
TED]> Cc: "php-general" Sent: Friday, March 23, 2007 7:48 PM Subject: Re: [PHP] POST a variable Sorry, I was more tailoring my question to the syntax of my query. It wasn't displaying anything for my echo. I've changed it to this now: $get_max = "SELECT scope_id

Re: [PHP] POST a variable

2007-03-23 Thread Dan Shirah
iginal Message - *From:* Dan Shirah <[EMAIL PROTECTED]> *To:* Satyam <[EMAIL PROTECTED]> *Sent:* Friday, March 23, 2007 7:14 PM *Subject:* Re: [PHP] POST a variable Satyam, I'm trying to retrieve the id using the identity method, but I do not get anything returned. Do you see

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
<[EMAIL PROTECTED]> Cc: "php-general" Sent: Friday, March 23, 2007 4:07 PM Subject: Re: [PHP] POST a variable The reason I have to use it as I posted is because I am using Microsoft SQL server instead of MySQL. And I haven't found a php function for MSSQL that works the sam

Re: [PHP] POST a variable

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 11.07-kor Dan Shirah ezt írta: > The reason I have to use it as I posted is because I am using > Microsoft SQL server instead of MySQL. And I haven't found a php > function for MSSQL that works the same as mysql_insert_id() you wrote something earlier as far as I

RE: [PHP] POST a variable

2007-03-23 Thread Edward Kay
> -Original Message- > From: Németh Zoltán [mailto:[EMAIL PROTECTED] > 2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta: > > Okay, I feel like the correct answer to this is about 2mm back > in my grey > > matter. > > > > 1. I have a query that pulls the last row number when

Re: [PHP] POST a variable

2007-03-23 Thread Dan Shirah
The reason I have to use it as I posted is because I am using Microsoft SQL server instead of MySQL. And I haven't found a php function for MSSQL that works the same as mysql_insert_id() So, to come out with a comparable function with pretty reliable results, I follow this process: 1. User ente

  1   2   3   4   5   6   >