php-general Digest 4 Mar 2013 17:09:59 -0000 Issue 8148

2013-03-04 Thread php-general-digest-help
php-general Digest 4 Mar 2013 17:09:59 - Issue 8148 Topics (messages 320376 through 320382): Re: Introduction ... ! 320376 by: Ravi Gehlot Open form in new window 320377 by: John Taylor-Johnston 320378 by: Maciek Sokolewicz 320379 by: Terry Ally (Gmail)

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Terry Ally (Gmail)
You could echo HTML code e.g. form action=result.php method=post Number: input id=quantity type=text / *button type=button onclick=OpenWindow()Submit/button* /form or include it as one of your form attributes: *form action=demo_form.asp method=get target=_blank* First name: input type=text

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Maciek Sokolewicz
On 4 March 2013 09:32, Terry Ally (Gmail) terrya...@gmail.com wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. form action=result.php method=post Number: input id=quantity type=text / button type=button

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Terry Ally (Gmail)
I was using an example and NOT intended to show ASP. On 4 March 2013 08:35, Maciek Sokolewicz maciek.sokolew...@gmail.comwrote: On 4 March 2013 09:32, Terry Ally (Gmail) terrya...@gmail.com wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do

Re: [PHP] Very Large File Splatter

2013-03-04 Thread Richard Quadling
On 22 February 2013 21:04, Brian Smither bhsmit...@gmail.com wrote: PHP 5.4.4-TS-VC9 on Windows XP SP3 NTFS non-system drive with 18GB free. I dare not try to replicate this. As such, I cannot firmly place the blame on PHP. I have peppered a PHP application with a call to a function which

Re: [PHP] Re: Open form in new window

2013-03-04 Thread John Taylor-Johnston
You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. form action=result.php method=post Number: input id=quantity type=text / button type=button onclick=OpenWindow()Submit/button /form or include it as one of

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
On 04 Mar 2013 at 17:10, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: button type=button onclick=OpenWindow()Submit/button will not submit the form contents. Nothing to stop your OpenWindow() function doing a submit as in: button type=button

[PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
Hello, I have a script that counts hits to all the pages in my site and emails me a report nightly. However, it also counts my visits to my site, and when I'm coding, I'm hitting a lot of my pages, repeatedly. I'd like to find a way to not count my page visits. At first, I

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Tommy Pham
On Mon, Mar 4, 2013 at 9:47 AM, Angela Barone ang...@italian-getaways.com wrote: Hello, I have a script that counts hits to all the pages in my site and emails me a report nightly. However, it also counts my visits to my site, and when I'm coding, I'm hitting a lot of my pages,

Re: [PHP] Open form in new window

2013-03-04 Thread John Taylor-Johnston
If you want to open a new page in response to a submit button press (using PHP) you may be out of luck. I don't know of a way to do it without involving another language. Opening a different page in the *same* window, yes. Otherwise, no. But watch the other replies. Maybe someone knows

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
Angela Barone ang...@italian-getaways.com wrote: Hello, I have a script that counts hits to all the pages in my site and emails me a report nightly. However, it also counts my visits to my site, and when I'm coding, I'm hitting a lot of my pages, repeatedly. I'd like to find a way to

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Matijn Woudt
On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. form action=result.php method=post Number: input id=quantity

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 9:52 AM, Tommy Pham wrote: What about ignoring $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST'] where that matches your public IP or FQDN? Hi Tommy, I am checking for $_SERVER['REMOTE_ADDR'] but how would I check that against mine? I don't have a static IP.

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: set a cookie with a long life and check for that, discounting visits when either are true Hi Ash, I don't know anything about cookies. It sounds complicated to me. Is there a simple way to set one? Thanks, Angela -- PHP General

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Mon, 2013-03-04 at 10:15 -0800, Angela Barone wrote: On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: set a cookie with a long life and check for that, discounting visits when either are true Hi Ash, I don't know anything about cookies. It sounds complicated to me. Is

[PHP] PHP Web Developer Opportunity

2013-03-04 Thread Allison Garcia
*SMALL WORLD LABS is looking for a PHP WEB DEVELOPER * Small World Labs is looking for a PHP Web Developer to be a part of our team. The position is focused on managing, supporting and expanding the Small World Labs social collaboration and online community platform. This role will interface with

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Paul M Foster
On Mon, Mar 04, 2013 at 05:39:00PM +, Tim Streater wrote: On 04 Mar 2013 at 17:10, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: button type=button onclick=OpenWindow()Submit/button will not submit the form contents. Nothing to stop your OpenWindow()

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Paul M Foster
On Mon, Mar 04, 2013 at 06:58:41PM +0100, Matijn Woudt wrote: On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP.

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Ashley Sheridan
On Mon, 2013-03-04 at 15:22 -0500, Paul M Foster wrote: On Mon, Mar 04, 2013 at 06:58:41PM +0100, Matijn Woudt wrote: On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: You could echo HTML code e.g. Which is still purely

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
On 04 Mar 2013 at 20:17, Paul M Foster pa...@quillandmouse.com wrote: On Mon, Mar 04, 2013 at 05:39:00PM +, Tim Streater wrote: Personally I never submit forms. I use ajax to communicate with PHP scripts and do something with the data that is returned by the script. You can see a simple

[PHP] Re: Open form in new window

2013-03-04 Thread Jim Giner
On 3/4/2013 12:44 AM, John Taylor-Johnston wrote: I have many different submit button. input value=Update type=submit input name=DPRmode value=Enter Data type=submit When php processes value=Enter Data, I would like to open a new window, but only if I click this one. Possible? I knw ther is an

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: You can manually write a cookie on your machine, or use a special script that only you visit that contains a setcookie() call (it only need be set once). From there on, you can check the $_COOKIES super global for the presence of your

Re: [PHP] Not counting my own page visits

2013-03-04 Thread David Robley
Angela Barone wrote: On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: You can manually write a cookie on your machine, or use a special script that only you visit that contains a setcookie() call (it only need be set once). From there on, you can check the $_COOKIES super global for the

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: Angela Barone wrote: On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: You can manually write a cookie on your machine, or use a special script that only you visit that contains a setcookie() call (it only need be set once). From

Re: [PHP] [ad] [free+opensource] htmlMicroscope (nested array viewer/dumper) upgraded - now allows for even larger arrays

2013-03-04 Thread Ravi Gehlot
I like PHPUnit for that matter. It does a good job of debugging. Ravi. On Sat, Dec 22, 2012 at 8:41 AM, rene7705 rene7...@gmail.com wrote: Hi Folks. URL: http://fancywebapps.com/products/htmlMicroscope Just wanted to let you all know that I've completed a long overdue upgrade to my free

Re: [PHP] Not counting my own page visits

2013-03-04 Thread tamouse mailing lists
On Mon, Mar 4, 2013 at 5:58 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: Angela Barone wrote: On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: You can manually write a cookie on your machine, or use a special script that

Re: [PHP] Re: Open form in new window

2013-03-04 Thread tamouse mailing lists
I would like to just take a step back and ponder what the user experience of this will be. Click a submit button, one of *many* as the OP says, and a new browser window opens? I don't think that is how most people experience the web these days. Technicalities of how one does this notwithstanding,