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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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'
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
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,
>
>
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
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
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
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
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
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
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'] =
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
_
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
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
> 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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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"
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
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
[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
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
[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
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
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!
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
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['
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
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
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
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]=>
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
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
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
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
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
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
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,
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
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
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
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..
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 <[
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
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
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:
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
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
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.
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
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
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[
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
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[
use: $_POST['max_id'] ==
or even better:
if (empty($_POST['max_id']))
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
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
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
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
: "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
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
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
<[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
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
> -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
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 - 100 of 535 matches
Mail list logo