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

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 HTML

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

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

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

[PHP] POST action

2013-07-28 Thread iccsi
form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn 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,

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I

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: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to

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: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the

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: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I

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: form action=action.php method=post pYour name: input type=text name=name

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

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 forms need a

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

[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 $_SESSION

2012-03-15 Thread Daniel Brown
On Thu, Mar 15, 2012 at 11:04, Tedd Sperling tedd.sperl...@gmail.com 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;

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 danbr...@php.net wrote: On Thu, Mar 15, 2012 at 11:04, Tedd Sperling tedd.sperl...@gmail.com wrote: Hi

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 tedd.sperl...@gmail.com 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'])

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 tedd.sperl...@gmail.com wrote: Hi gang: What's a better/shorter way to write this? $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] :

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Daniel Brown
On Thu, Mar 15, 2012 at 14:31, Stuart Dallas stu...@3ft9.com 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. ?php session_start();

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 stu...@3ft9.com 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

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 stu...@3ft9.com 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)

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 stu...@3ft9.com 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 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 stu...@3ft9.com wrote: The @ prefix is banned from all code I go anywhere

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Adam Richardson
On Thu, Mar 15, 2012 at 11:04 AM, Tedd Sperling tedd.sperl...@gmail.com 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;

[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

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 the

Re: [PHP] POST without POSTing

2009-10-01 Thread Tommy Pham
- Original Message From: Daniel Brown danbr...@php.net To: Paul M Foster pa...@quillandmouse.com 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: fsockopen

Re: [PHP] POST without POSTing

2009-10-01 Thread Kirk . Johnson
Paul M Foster pa...@quillandmouse.com 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 submit button, it checks the input

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 pa...@quillandmouse.com 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

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster pa...@quillandmouse.com 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

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 pa...@quillandmouse.com 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

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 enter

[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 must

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster pa...@quillandmouse.com 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

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 pa...@quillandmouse.com 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

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster pa...@quillandmouse.com 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

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:16:27 -0400 Paul M Foster pa...@quillandmouse.com 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 pa...@quillandmouse.com wrote: I'm not sure how to do this. Please no exotic external libraries

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 pa...@quillandmouse.com 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):

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster pa...@quillandmouse.com 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

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:24:41 -0400 Daniel Brown danbr...@php.net wrote: On Thu, Oct 1, 2009 at 00:16, Paul M Foster pa...@quillandmouse.com 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

[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

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 different pieces

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 arrays is a

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:

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 names of the

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

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. I

[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

[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/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 values

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 do

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. form action=script.php method=POST TEXTAREA NAME=save COLS=100 ROWS=15 dry-run: filter: account-id = '10002' select: key /textarea PbrINPUT TYPE=submit VALUE=submit /FORM/a That

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: php-general@lists.php.net 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

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: php-general@lists.php.net Sent: Thursday, June 21, 2007 4:03 AM Subject: Re: [PHP] POST adding extra characters [EMAIL PROTECTED] wrote: Hi.. when using

[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 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 cellphone

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

[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

Re: [PHP] POST + QUERY

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

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'] is

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 =

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 the

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. echo

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 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 a form

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:02,

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 if

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

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_info) it

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 something

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 above

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, not to

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 and

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]

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

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 have

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 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] = [EMAIL

Re: [PHP] POST + QUERY

2007-03-27 Thread Dan Shirah
Here is the result from the pre/pre 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]= string(4)

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 [16] =

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] = 456 Your Place

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] = Smithville [13] = 12345

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 =

[PHP] POST a variable

2007-03-23 Thread Dan Shirah
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_result=mssql_query($maximum);

Re: [PHP] POST a variable

2007-03-23 Thread Németh Zoltán
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 a newly inserted record is added: $maximum=SELECT MAX(payment_id) FROM payment_request;

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

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 a newly

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 Satyam
@lists.php.net 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 same as mysql_insert_id() So, to come out

Re: [PHP] POST a variable

2007-03-23 Thread Dan Shirah
:* 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 anything wrong with this code? $get_max = SELECT scope_identity(); $max_result = mssql_query($get_max) or die

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
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_identity(); $max_result = mssql_query($get_max) or die(mssql_error()); $max_id

Re: [PHP] POST a variable

2007-03-23 Thread Dan Shirah
PROTECTED] Cc: php-general php-general@lists.php.net 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_identity

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;

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;

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 Q

2006-12-18 Thread Nisse Engström
On Fri, 15 Dec 2006 23:22:13 -0600 (CST), Richard Lynch wrote: $selected = $l == $limit ? 'selected=selected' : ''; echo option value=\$l\ $selected$l/option\n; [snip] The value=x *is* optional, but you'll never convince the people who tell you it isn't, unless you force them to

  1   2   3   4   5   6   >