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