Re: [PHP] Recognizing double clicks

2009-11-21 Thread Hans Åhlin
Write a function that generate a unique form id and one that checks if it already has been submitted. Store data that the script sends after a submit has been done in the session array and if it is a re-submit just re-send the the data. 2009/11/22 Skip Evans : > Hey all, > > Every site I've ever s

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Manuel Lemos
Hello, on 11/22/2009 03:34 AM Skip Evans said the following: > It just dawned on me the button may be disabled right when it's clicked > to prevent a double submit? > > Is that doable? This forms generation class can do exactly that. It generates Javascript with form HTML that disables the form

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Skip Evans
It just dawned on me the button may be disabled right when it's clicked to prevent a double submit? Is that doable? Skip Skip Evans wrote: Hey all, Every site I've ever stuck a credit card into said "only click once...". I just this requirement from a client. a.System should recognize a

[PHP] Recognizing double clicks

2009-11-21 Thread Skip Evans
Hey all, Every site I've ever stuck a credit card into said "only click once...". I just this requirement from a client. a.System should recognize a duplicated click, so the message in red “only click once” should be unnecessary. Is this doable??? Has anyone on the list ever done this???

[PHP] Re: Extracting a time zone from a latitude longitude

2009-11-21 Thread clancy_1
On Sat, 21 Nov 2009 09:25:16 -0800, level...@gmail.com (Haig Davis) wrote: >Good Morning all, > >Having a look at the time zone functions in PHP you can enter a time zone >city and get it's lat long. Does anybody know how you can run the function >in reverse (or know of a similar function) i.e. ge

Re: [PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Angus Mann
same as everywhere else in your apps.. ajax is no different in any way at all, not even slightly. as far as PHP and web server is concerned it's just a plain old request same as any other; thus.. if( !$_SESSION['is_logged_in'] ) { exit(); } // do stuff Thanks for that. Sometimes the solution

[PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Nathan Rixham
Angus Mann wrote: > Hi all. > > A question about PHP sessions and their interaction with AJAX. > > I have a database containing sensitive information and users need to log in > to my PHP script and be authenticated before they are granted access. > > For one of the forms I would like to retriev

Re: [PHP] Which query is more correct?

2009-11-21 Thread Nathan Rixham
Rick Pasotto wrote: > On Fri, Nov 20, 2009 at 04:41:58PM -0600, LAMP wrote: >> Hi, >> I need to pull all records from the table Registrants they are NOT >> in the table ToBeRecleared >> >> Registrants.Reg_ID is PK >> ToBeRecleared.tbrc_Reg_ID is PK >> >> Which query is more correct? >> >> SELECT r.

[PHP] Re: Extracting a time zone from a latitude longitude

2009-11-21 Thread Nathan Rixham
Haig Davis wrote: > Good Morning all, > > Having a look at the time zone functions in PHP you can enter a time zone > city and get it's lat long. Does anybody know how you can run the function > in reverse (or know of a similar function) i.e. get the time zone city from > the geographic coordinate

Re: [PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Stuart Dallas
On 21 Nov 2009, at 17:51, Phpster wrote: > This is a simple math problem. Create am array with a start and end longitude > for that timezone and run a comapre from your lay/long co-ords to see where > it falls. It's not that simple because timezones boundaries don't run in straight lines from p

Re: [PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Phpster
This is a simple math problem. Create am array with a start and end longitude for that timezone and run a comapre from your lay/long co- ords to see where it falls. Bastien Sent from my iPod On Nov 21, 2009, at 12:25 PM, Haig Davis wrote: Good Morning all, Having a look at the time zone

Re: [PHP] Creating users and generating privileges for users

2009-11-21 Thread Phpster
Check out the grant command in SQL for your database Bastien Sent from my iPod On Nov 21, 2009, at 9:05 AM, tedd wrote: At 6:36 PM -0600 11/20/09, nitin reddy wrote: Hey can one help me in creating different users using mysql for php and assigning different privileges for them ..any sampl

[PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Haig Davis
Good Morning all, Having a look at the time zone functions in PHP you can enter a time zone city and get it's lat long. Does anybody know how you can run the function in reverse (or know of a similar function) i.e. get the time zone city from the geographic coordinates. Google maps was a thought b

Re: [PHP] How to create a web application like igoogle?

2009-11-21 Thread Ali Asghar Toraby Parizy
Hi. thanks for your reply. I learned php and I have created several web application before. But all i ever do, is creating php files with one html form an some php tags that manipulate data and sends it to a database or another web page (or to itself). Now i like try building a web pages that have

Re: [PHP] Creating users and generating privileges for users

2009-11-21 Thread tedd
At 6:36 PM -0600 11/20/09, nitin reddy wrote: Hey can one help me in creating different users using mysql for php and assigning different privileges for them ..any sample code available? -- PASULA NITIN REDDY Graduate Student in Computer Science Department University of Minnesota,Twin Cities Minn

Re: RES: [PHP] CSS and variables

2009-11-21 Thread tedd
This might help: http://sperling.com/examples/pcss/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP sessions, AJAX, authentication and security.

2009-11-21 Thread tedd
At 9:30 PM +1000 11/21/09, Angus Mann wrote: Hi all. A question about PHP sessions and their interaction with AJAX. I have a database containing sensitive information and users need to log in to my PHP script and be authenticated before they are granted access. For one of the forms I would

Re: [PHP] PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Phpster
You could use a one time token on each request Bastien Sent from my iPod On Nov 21, 2009, at 6:30 AM, "Angus Mann" wrote: Hi all. A question about PHP sessions and their interaction with AJAX. I have a database containing sensitive information and users need to log in to my PHP script an

[PHP] PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Angus Mann
Hi all. A question about PHP sessions and their interaction with AJAX. I have a database containing sensitive information and users need to log in to my PHP script and be authenticated before they are granted access. For one of the forms I would like to retrieve information using AJAX, and some