php-general Digest 29 Aug 2009 13:06:00 - Issue 6312
Topics (messages 297453 through 297472):
Re: Problem outputting MySQL Date field
297453 by: Jim Lucas
Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field
297454 by: Keith Davis
297455 by: John Meyer
Re:
I've heard stories like this before, but never encountered it myself.
I forgot to mention that it is a good idea to give your submit buttons a
value attribute. Regardless of how the form is submitted, you should then
have a value for ['submit'].
Reminding the user that they must do anything
- Original Message -
From: John Meyer johnme...@pueblocomputing.com
To: php-general@lists.php.net
Sent: Friday, August 28, 2009 1:56 AM
Subject: [PHP] Converting URL's to hyperlinks.
What sort of function would I need if I wanted to convert those URLs
from plain jane text?
You
are u shure, u dont send anything out before u send the headers? even one
space would be too much.
ralph_def...@yahoo.de
Dan Shirah mrsqua...@gmail.com wrote in message
news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com...
You will need to add some headers to the page to popup
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u dont send anything out before u send the headers? even one
space would be too much.
ralph_def...@yahoo.de
Dan Shirah mrsqua...@gmail.com wrote in message
On Sat, 29 Aug 2009 12:50:41 +0800, Keith wrote:
I don't know why or in what condition that pressing [ENTER] will not submit
the whole form include the $_POST['submit'].
http://www.alanflavell.org.uk/www/formquestion.html
http://www.alanflavell.org.uk/www/#Tips
/Nisse
--
PHP General
even the .tif is valid or not, the file should be downloaded
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1251530173.27899.135.ca...@localhost...
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u dont send anything out before u send the headers? even
one
extension A has function a, extension B has function b. How can I make b
calls a?
--
View this message in context:
http://www.nabble.com/Calling-extension-function-from-another-tp25185839p25200892.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing
To test a form I usually send the form contents to a php file that contains
the following;
foreach($_POST as $nm = $val) echo _POST[.$nm.] [.$val.]br;
foreach($_GET as $nm = $val) echo _GET[.$nm.] [.$val.]br;
Checkboxes and radio buttons only send their value if the control is
checked.
You can
Shawn McKenzie wrote:
Adam Jimerson wrote:
This question might give away the fact that I am a php noob, but I am
looking for the best way to test for form submission in PHP.
[..]
Just to throw it into the mix:
if(!empty($_POST)) for a general test of whether any form was posted.
There
- Original Message -
From: Ashley Sheridan a...@ashleysheridan.co.uk
To: Ralph Deffke ralph_def...@yahoo.de
Cc: php-general@lists.php.net
Sent: Saturday, August 29, 2009 3:16 PM
Subject: Re: [PHP] File Open Prompt?
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u
- Original Message -
From: Eric blueray2...@yahoo.com
To: a...@ashleysheridan.co.uk; Ralph Deffke ralph_def...@yahoo.de
Cc: php-general@lists.php.net
Sent: Saturday, August 29, 2009 5:01 PM
Subject: Re: [PHP] File Open Prompt?
- Original Message -
From: Ashley Sheridan
On Sat, Aug 29, 2009 at 10:14 AM, leledumbo leledumbo_c...@yahoo.co.idwrote:
extension A has function a, extension B has function b. How can I make b
calls a?
What is an extension?
--
View this message in context:
2009/8/28 leledumbo leledumbo_c...@yahoo.co.id:
Is it possible to call a function that resides in an extension from another
extension?
It's certainly possible but I've never needed to do it so I don't know
how. I suggest you ask this question on the PHP Internals list.
-Stuart
--
At 5:33 PM +0100 8/28/09, Ashley Sheridan wrote:
On Fri, 2009-08-28 at 12:28 -0400, tedd wrote:
Ash:
What catches me every once in a while is using variable names that
are the same as $_SESSION indexes, such as:
$session_name = $_SESSION['session_name'];
Believe it or not, that
At 5:51 PM +0100 8/28/09, Ashley Sheridan wrote:
I usually just
tend to use the $_REQUEST array instead of $_POST or $_GET. You get the
benefit of being able to work with both arrays (as well as $_SESSION and
$_COOKIE) without any drawbacks.
Thanks,
Ash
Ash:
Drawbacks are funny things.
Not
At 1:18 AM -0700 8/29/09, Warren Vail wrote:
To test a form I usually send the form contents to a php file that contains
the following;
foreach($_POST as $nm = $val) echo _POST[.$nm.] [.$val.]br;
foreach($_GET as $nm = $val) echo _GET[.$nm.] [.$val.]br;
Checkboxes and radio buttons only send
At 1:01 PM -0400 8/28/09, David Stoltz wrote:
Hey Stuart -
RTFM yourselfI did read it, and obviously misunderstood...
I'm really sorry to bother you. I thought that was what a listserv
like this was for - to ask questions...
I'll try not to ask questions I should know the answer to next
Warren Vail wrote:
To test a form I usually send the form contents to a php file that contains
the following;
foreach($_POST as $nm = $val) echo _POST[.$nm.] [.$val.]br;
foreach($_GET as $nm = $val) echo _GET[.$nm.] [.$val.]br;
Checkboxes and radio buttons only send their value if the control
On 8/29/09 9:29 AM, tedd tedd.sperl...@gmail.com wrote:
At 1:18 AM -0700 8/29/09, Warren Vail wrote:
To test a form I usually send the form contents to a php file that contains
the following;
foreach($_POST as $nm = $val) echo _POST[.$nm.] [.$val.]br;
foreach($_GET as $nm = $val) echo
Balasubramanyam A knowledge.wea...@gmail.com wrote in message
news:893c34ce0908270424n2d81596dq8529f13818dc9...@mail.gmail.com...
Hello,
I've written a simple application, where users need to login to access the
features of the application. I want to develop login system such that, if
user
Ok, so I've got an authentication/login form that is powered by ajax. The
user logs in, is authenticated, and the last step is to start a session and
save the necessary information in the $_SESSION vars.
For some reason, it appears (and almost of makes sense) that the session
that is started via
In this mechanism, does a role differ significantly from a group?
I have to admin a CRM system that has both roles /and/ groups, and it
always seems a bit excessive. But maybe there's some benefit to roles,
as such, that I'm not seeing.
Thanks, Ben
[JP]
As described, a role appears to
As described, a role appears to act essentially the same as a group
- a predefined set of permissions that can be assigned to multiple
users (as opposed to a set of permissions unique to the user).
[JP]
I should say, the logic of a role is essentially the same as the logic
behind a group. It
I found two small errors in the isLoggedIn(), which are corrected below.
They don't have any effect on the issue at hand though.
**
function isLoggedIn($debug = 0){
global $COOKIE_NAME;
// if there is an active session.
if (isset($_SESSION) $_SESSION['sessDBID'] !=
Nevermind. It was a simple mistake - I had session_start() on the page
the ajax was calling from, but not at the beginning of the php script it was
calling to.
on a regulary base I read the docs even on functions I know, I just read
about the funstion u use and the doc says this:
Note: If you're opening a URI with special characters, such as spaces, you
need to encode the URI with urlencode().
did u try to avoid the problem by using urlencode ?
just a
On Fri, 28 Aug 2009 17:22:20 -0600, LinuxManMikeC wrote:
a href=?php echo $url; ?click here/a
*Groan*
Throw any random web site to an HTML validator
and you're likely to see this kind of slop all
over.
The correct solution is of course:
$u = htmlspecialchars ($url);
echo a href=\$u\$u/a;
For those of you that remember (not likely but anyway) I am working on
some code that splits CLF records and feeds them into a database.
What I need to do now is automate it.
So what I have is a program (urlsnarf) that redirects its output
(simple cmd file.txt) to a file. The script currently
2009/8/29 Nisse Engström news.nospam.0ixbt...@luden.se:
On Fri, 28 Aug 2009 17:22:20 -0600, LinuxManMikeC wrote:
a href=?php echo $url; ?click here/a
*Groan*
Throw any random web site to an HTML validator
and you're likely to see this kind of slop all
over.
The correct solution is of
On Sat, Aug 29, 2009 at 3:31 PM, Paul Hallidaypaul.halli...@gmail.com wrote:
For those of you that remember (not likely but anyway) I am working on
some code that splits CLF records and feeds them into a database.
What I need to do now is automate it.
So what I have is a program (urlsnarf)
On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote:
As for your more elaborate example, I'm sure that heredoc will
validate nicely.
It does.
and rethink your code so you aren't processing the same data over and
over again. I see this kind of slop all over.
Touché!
Would you believe
2009/8/29 Nisse Engström news.nospam.0ixbt...@luden.se:
On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote:
As for your more elaborate example, I'm sure that heredoc will
validate nicely.
It does.
Perhaps you haven't met a few good friends of mine. Their names are
html, head, and
On Sat, 29 Aug 2009 16:47:47 -0600, LinuxManMikeC wrote:
2009/8/29 Nisse Engström news.nospam.0ixbt...@luden.se:
On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote:
As for your more elaborate example, I'm sure that heredoc will
validate nicely.
It does.
Perhaps you haven't met a
.
Thank you,
Marc Hall
HallMarc Websites
610.446.3346
__ Information from ESET Smart Security, version of virus signature
database 4380 (20090829) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net
35 matches
Mail list logo