php-general Digest 20 Feb 2011 12:45:28 - Issue 7191
Topics (messages 311443 through 311458):
Re: chat facebook
311443 by: Brian Waters
311445 by: fakessh .
311446 by: fakessh .
311448 by: Daniel Brown
Array from one form to other?
311444 by: Yogesh
php-general Digest 21 Feb 2011 01:21:45 - Issue 7192
Topics (messages 311459 through 311480):
Re: Array from one form to other?
311459 by: Tamara Temple
311460 by: Yogesh
311475 by: Tamara Temple
Submitting data to MySQL database using HTML/PHP form
311461
Hi.
I have a JSON, let's say {\a b\: 13}.
json_decode() handles it properly. However, then resulting object has
a property composed of two words.
What I did to access this property was the following:
$json = {\a b\: 13};
$decoded = json_decode($json);
$tag = a b;
print($decoded-$tag);
John Taylor-Johnston wrote:
9970318527584
Could this number refer to a date()? In late 2009?
How could I calculate it?
How did you get the number?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Am 20.02.2011 11:32, schrieb Florin Jurcovici:
Hi.
I have a JSON, let's say {\a b\: 13}.
json_decode() handles it properly. However, then resulting object has
a property composed of two words.
What I did to access this property was the following:
$json = {\a b\: 13};
$decoded =
On Feb 19, 2011, at 6:38 PM, Yogesh wrote:
I have two forms. One form helps read an input file into an array.
And the
other form needs this array as an input.
I am able to read the input file into an array, but how do I pass it
over to
the other form.
Both forms have PHP file as 'action'.
Hi Tamara,
I don't entirely understand this; Dan Brown gave you solution to use curl to
pass the array to the second form (do you mean script here?). That would
certainly work, but I'm wondering if it wouldn't be more secure to spool out
the array to a file from the first script after it has
Hi there,
I am creating a login page for my website. The users' information will be
stored in a MySQL database. I have a registration form on my home page, and
a separate file called login.php to process the user values. However, the
entries are not going to the MySQL database (however, the
On Sun, Feb 20, 2011 at 12:55, Daniel Brown danbr...@php.net wrote:
On Sun, Feb 20, 2011 at 12:53, Daniel Brown danbr...@php.net wrote:
If the value isn't that of your database password, there's your
problem: register_globals. A simpler way is to check the output of
phpinfo(); to see if
Hm.
Commented out the line re-tested. Absolutely no change whatsoever :(
Even made it false.
I'm really hoping I've been an idiot on this one. Makes no sense
otherwise but this is where I am.
Hope to hear further suggestions.
James
On 20 February 2011 03:05, Daniel Brown danbr...@php.net
At 2:03 PM -0500 2/18/11, Pete Woodhead wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very
new to code writing.
Thought this would be a good way to learn good habits as well as good code
writing.
Looking forward to learning and participating.
Pete:
Welcome to
Update:
I added echo statements after mysql_connect and mysql_select_db to check
where the code was broken. These statements show up on the login.php page
after submitting the form, which means the MySQL connection works. So, the
problem seems to lie with the *$insert *query... ideas?
On Sun,
Issue resolved!
It turned out to be the use of quotations. Instead of double quotations to
surround the $insert variable, it worked with single quotations:
$insert = ' INSERT INTO user_info
(login,password)
VALUES
('.$login.', '.$password.') ' ;
With the
Hello Nazish,
Try to do the following in your login.php:
?php
print_r($_POST);
// assign your variables
echo br$loginbr$passwordbr$insertbr;
So we'll see the result.
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion
Hello Nazish,
Echo the $insert variable.
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
Original message
From: Nazish
I see an errors in the syntax.
$insert = INSERT INTO user_info (login, password) VALUES
('.mysql_real_escape_string($login).','.mysql_real_escape_string($passwor
d).');
Issues resolved.
$insert = INSERT INTO user_info (login, password) VALUES
I'm wondering if anyone is going to comment on the transmittal and
storage of plain text passwords
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Tamara,
:-)) I assume that was a testcase...
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
Original message
From:
On Feb 20, 2011, at 10:51 AM, Yogesh wrote:
I don't entirely understand this; Dan Brown gave you solution to use
curl to pass the array to the second form (do you mean script
here?). That would certainly work, but I'm wondering if it wouldn't
be more secure to spool out the array to a
On 20 February 2011 12:24, Vlatko Šurlan mrdo...@gmail.com wrote:
John Taylor-Johnston wrote:
9970318527584
Not an ISBN number. In fact Google only shows this thread for this number.
The hex value is uninspiring 0x911654B4C60
As is the octal 0221054522646140 and binary
On 20 February 2011 23:34, Richard Quadling rquadl...@gmail.com wrote:
On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very
new to code writing.
Thought this would be a good way to learn good
21.02.2011 01:41, Richard Quadling yazmış:
On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote:
On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very
new to code writing.
Thought
On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very
new to code writing.
Thought this would be a good way to learn good habits as well as good code
writing.
Looking forward to learning and
On Feb 20, 2011, at 5:51 PM, tolga wrote:
21.02.2011 01:41, Richard Quadling yazmış:
On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com
wrote:
On 18 February 2011 19:03, Pete
Woodheadpete.woodhea...@gmail.com wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To
21.02.2011 03:21, Tamara Temple yazmış:
On Feb 20, 2011, at 5:51 PM, tolga wrote:
21.02.2011 01:41, Richard Quadling yazmış:
On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com
wrote:
On 18 February 2011 19:03, Pete
Woodheadpete.woodhea...@gmail.com wrote:
Hi I'm Pete Woodhead.
On Feb 20, 2011, at 7:38 PM, tolga wrote:
21.02.2011 03:21, Tamara Temple yazmış:
On Feb 20, 2011, at 5:51 PM, tolga wrote:
i'm interested in php about 3 maybe 4 years but i still couldnt
get the logic of classes. it makes no sense to me. i couldnt
understand whats about classes good at
better yet: http://lmgtfy.com/?q=explanation+of+classes+in+php
On Sun, Feb 20, 2011 at 9:39 PM, Tamara Temple tamouse.li...@gmail.comwrote:
On Feb 20, 2011, at 7:38 PM, tolga wrote:
21.02.2011 03:21, Tamara Temple yazmış:
On Feb 20, 2011, at 5:51 PM, tolga wrote:
i'm interested in php
ahaha lol.
the point of my ask here is that i want to find a trusted source, not
seo based web sites with no info inside.
but thats cool.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Feb 20, 2011 at 8:38 PM, tolga kacmazto...@gmail.com wrote:
21.02.2011 03:21, Tamara Temple yazmış:
On Feb 20, 2011, at 5:51 PM, tolga wrote:
21.02.2011 01:41, Richard Quadling yazmış:
On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote:
On 18 February 2011
?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm=My Realm');
header('HTTP/1.0 401 Unauthorized');
echo 'Text to send if user hits Cancel button';
exit;
} else {
echo pHello {$_SERVER['PHP_AUTH_USER']}./p;
echo pYou entered
-- Forwarded message --
From: Ashim Kapoor ashimkap...@gmail.com
Date: Mon, Feb 21, 2011 at 12:46 PM
Subject: Re: [PHP] HTTP Authenticaion Query
To: Peter Lind peter.e.l...@gmail.com
You are tired and not thinking straight. HTTP is a stateless thing: 1.
you request the page,
31 matches
Mail list logo