php-general Digest 5 Mar 2013 11:02:35 -0000 Issue 8149
php-general Digest 5 Mar 2013 11:02:35 - Issue 8149 Topics (messages 320383 through 320405): Re: Open form in new window 320383 by: John Taylor-Johnston 320384 by: Tim Streater 320387 by: John Taylor-Johnston 320389 by: Matijn Woudt 320394 by: Paul M Foster 320395 by: Paul M Foster 320396 by: Ashley Sheridan 320397 by: Tim Streater 320398 by: Jim Giner 320404 by: tamouse mailing lists Not counting my own page visits 320385 by: Angela Barone 320386 by: Tommy Pham 320388 by: Ashley Sheridan 320390 by: Angela Barone 320391 by: Angela Barone 320392 by: Ashley Sheridan 320399 by: Angela Barone 320400 by: David Robley 320401 by: Ashley Sheridan 320403 by: tamouse mailing lists PHP Web Developer Opportunity 320393 by: Allison Garcia Re: [ad] [free+opensource] htmlMicroscope (nested array viewer/dumper) upgraded - now allows for even larger arrays 320402 by: Ravi Gehlot SPAM 320405 by: SPAM Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- 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 your form attributes: form action=demo_form.asp method=get target=_blank First name: input type=text name=fnamebr Last name: input type=text name=lnamebr input type=submit value=Submit /form Again, pure HTML, and no PHP involved. Specifically, the (asp??) page called in the form action handler will never even be aware of the fact that the page was opened in a new window, or at least was supposed to. I was using an example and NOT intended to show ASP. target=_blank will open a new window every time. That will defeat the purpose. I have many different submit buttons, for different purposes. Depending on the $_POST value of each submit button, I tell PHP to do different things, input value=Update type=submit input name=DPRmode value=Enter Data type=submit I want to open a different window when I press: input name=DPRmode value=Enter Data type=submit I guess the best I can hope for is to try input name=DPRmode value=Enter Data type=submit onclick=OpenWindow() button type=button onclick=OpenWindow()Submit/button will not submit the form contents. Thanks, ---End Message--- ---BeginMessage--- 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 onclick=OpenWindow(this.form)Submit/button function OpenWindow (formPtr) { // Some actions formPtr.submit (); } 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 example at http://www.clothears.org.uk -- Cheers -- Tim ---End Message--- ---BeginMessage--- 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 something I don't. Paul Nope. Out of luck. ---End Message--- ---BeginMessage--- 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 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 name=fnamebr Last name: input type=text name=lnamebr input type=submit value=Submit /form Again, pure HTML, and no PHP involved. Specifically, the (asp??) page called in the form action handler will never even be aware of the fact that the page was opened in a new window, or at least was supposed to. I was using an example and NOT intended to show ASP. target=_blank will open a new window every time. That will defeat the purpose. I have many
Re: [PHP] Re: Open form in new window
On 3/4/2013 11:04 PM, tamouse mailing lists wrote: 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, I am urging the OP to consider their users. The OP's use of the word 'many' is subjective. Too you it might mean 5, to him it could very well mean 3. To me, either one is possible on many of my forms, since I try to provide the user with flexibility and function on each of my screens. Sometimes there are several things that a form could lead to, depending upon what the user needs to see or do. In this case, I can see the purpose for a separate window being opened. Sometimes (as a user myself) I have wished to have a screen of data appear to support my primary screen's use. It opens, I get some new input and I close it, going back to where I was. We obviously don't know the OP's task, but I can see usefulness and appreciate it. Just my $.02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cold Intermediate Programmer trying to modularize website...
I know less about WordPress than I do about Joomla, but I did notice a template site that I cannot find any support for (cool templates) which supports both Joomla and WordPress, as well as HTML/CSS. I know that there are lists of buttons which I was going to rely on PHP to handle. The problem with WordPress and Joomla is that the current webhost will allow PHP, but will not allow MySQL. :) I know... time to move the site to a FREE php/MySQL host. I already have one in mind, but the throughput from the host at a major ISP (Charter) is hard to leave... since the client has been paying for that webhost for over 20 years. A GoDaddy hosted site I might be able to talk her into, in a pinch... but she is a firm believer in the idea that you pay for quality. It might be very hard convincing her to consider another webhost that isn't local, and Charter is a local (non-toll-free) phone call away. Thank you for the suggestion. A WordPress site might actually be the solution... if she is willing to leave Charter. -- Barry Smith c 704-497-4217 e scs.bns...@gmail.com On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Have you considered setting this up in wordpress?
Re: [PHP] Re: Open form in new window
On Tue, Mar 5, 2013 at 8:37 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 3/4/2013 11:04 PM, tamouse mailing lists wrote: 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, I am urging the OP to consider their users. The OP's use of the word 'many' is subjective. Too you it might mean 5, to him it could very well mean 3. To me, either one is possible on many of my forms, since I try to provide the user with flexibility and function on each of my screens. Sometimes there are several things that a form could lead to, depending upon what the user needs to see or do. In this case, I can see the purpose for a separate window being opened. Sometimes (as a user myself) I have wished to have a screen of data appear to support my primary screen's use. It opens, I get some new input and I close it, going back to where I was. We obviously don't know the OP's task, but I can see usefulness and appreciate it. Just my $.02 Yes, it's all subjective, yes, what you like may not be what I like, and so on. Yet, UX people do agree on many things, and this is one of them. Popping a new browser window should be the user's choice. Not doing so leads to not only confusion, but also a11y problems. Which window gets focus? How does the user get back? These are real considerations when someone has to use a screen reader, or Voiceover. Navigating various windows can also be a problem for people with restricted mobility. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cold Intermediate Programmer trying to modularize website...
On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith scs.bns...@gmail.com wrote: I know less about WordPress than I do about Joomla, but I did notice a template site that I cannot find any support for (cool templates) which supports both Joomla and WordPress, as well as HTML/CSS. I know that there are lists of buttons which I was going to rely on PHP to handle. The problem with WordPress and Joomla is that the current webhost will allow PHP, but will not allow MySQL. :) I know... time to move the site to a FREE php/MySQL host. I already have one in mind, but the throughput from the host at a major ISP (Charter) is hard to leave... since the client has been paying for that webhost for over 20 years. A GoDaddy hosted site I might be able to talk her into, in a pinch... but she is a firm believer in the idea that you pay for quality. It might be very hard convincing her to consider another webhost that isn't local, and Charter is a local (non-toll-free) phone call away. Thank you for the suggestion. A WordPress site might actually be the solution... if she is willing to leave Charter. -- Barry Smith c 704-497-4217 e scs.bns...@gmail.com On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Have you considered setting this up in wordpress? I'm not familiar with Charter as an ISP, or what they offer. I'm guessing they are on a consumer web hosting plan? Something to look at might be if there's a low-tier commercial hosting plan with Charter, that might be better than moving off to GoDaddy (which I have very personally strong averse feelings to, so take that into account). Also, not trying to talk you out of a job or anything like that, but there are also things like wordpress.com and other public blogging platforms. A completely left-field thing now is also github pages. You can't run PHP, but wow can you make a great backbone.js app there. Anyway, just tossing out ideas. They're free, so you can ignore them. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cold Intermediate Programmer trying to modularize website...
On Tue, Mar 5, 2013 at 5:55 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith scs.bns...@gmail.com wrote: I know less about WordPress than I do about Joomla, but I did notice a template site that I cannot find any support for (cool templates) which supports both Joomla and WordPress, as well as HTML/CSS. I know that there are lists of buttons which I was going to rely on PHP to handle. The problem with WordPress and Joomla is that the current webhost will allow PHP, but will not allow MySQL. :) I know... time to move the site to a FREE php/MySQL host. I already have one in mind, but the throughput from the host at a major ISP (Charter) is hard to leave... since the client has been paying for that webhost for over 20 years. A GoDaddy hosted site I might be able to talk her into, in a pinch... but she is a firm believer in the idea that you pay for quality. It might be very hard convincing her to consider another webhost that isn't local, and Charter is a local (non-toll-free) phone call away. Thank you for the suggestion. A WordPress site might actually be the solution... if she is willing to leave Charter. -- Barry Smith c 704-497-4217 e scs.bns...@gmail.com On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Have you considered setting this up in wordpress? I'm not familiar with Charter as an ISP, or what they offer. I'm guessing they are on a consumer web hosting plan? Something to look at might be if there's a low-tier commercial hosting plan with Charter, that might be better than moving off to GoDaddy (which I have very personally strong averse feelings to, so take that into account). Also, not trying to talk you out of a job or anything like that, but there are also things like wordpress.com and other public blogging platforms. A completely left-field thing now is also github pages. You can't run PHP, but wow can you make a great backbone.js app there. Anyway, just tossing out ideas. They're free, so you can ignore them. :) Oh, another thing. AWS RDS (MySQL in the cloud) is possible, but it's horribly expensive to run for a low-access site. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Open form in new window
On Mar 4, 2013, at 3:17 PM, Paul M Foster pa...@quillandmouse.com wrote: 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() function doing a submit as in: button type=button onclick=OpenWindow(this.form)Submit/button function OpenWindow (formPtr) { // Some actions formPtr.submit (); } 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 example at http://www.clothears.org.uk -- Cheers -- Tim I'm trying to figure out where the net gain in that is. The PHP file being called via AJAX is doing its processing on the server either way. So it appears the only difference is an asynchronous Javascript/AJAX call or a synchronous PHP call (on a standard PHP form submission). What am I missing? Paul Yes, I agree with Paul -- how about an example? That way we can see what you are trying to do. You see, I use ajax all the time to send all sorts of things to the server without refresh, but I am at a lost to figure out what you are doing. Cheers, tedd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web Developer Opportunity
On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: *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 the product, support, professional services and client teams to provide technical guidance and drive future platform expansion. You will be responsible for both front back-end development for the Small World Labs platform. We are looking for an intelligent, fast learner who can thrive in a high energy environment. Strong knowledge of PHP and the ability to work in a dynamic team are required. *Technical Background:* - PHP (the primary development language) - CSS, MYSQL, DHTML, Javascript, JQuery, AJAX - Web Services using SOAP or RESTful API - Mobile development - Understanding of version control systems - Familiarity with Linux or another UNIX OS is preferred *Required Experience:* - At least 3 years successful technical development experience - Proven ability to manage multiple projects in a fast paced environment - Ability to take ownership over development projects - Knowledge of online social and professional networks and developer interfaces - Strong communication skills, both written and verbal - Experience with requirements gathering *Education:* - Bachelors or graduate degree *Location:* - Austin, Texas Interested parties, please email your resume with the subject line PHP Web Developer to j...@smallworldlabs.com. *About Small World Labs* Small World Labs is an experienced provider of an online community and social collaboration platform that enables organizations to connect with their constituents in new ways. We help non-profit organizations understand how to engage with their members to drive loyalty, create opportunities, ignite conversations, distribute knowledge, and share experiences. What are you offering? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web Developer Opportunity
On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: *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 the product, support, professional services and client teams to provide technical guidance and drive future platform expansion. You will be responsible for both front back-end development for the Small World Labs platform. We are looking for an intelligent, fast learner who can thrive in a high energy environment. Strong knowledge of PHP and the ability to work in a dynamic team are required. *Technical Background:* - PHP (the primary development language) - CSS, MYSQL, DHTML, Javascript, JQuery, AJAX - Web Services using SOAP or RESTful API - Mobile development - Understanding of version control systems - Familiarity with Linux or another UNIX OS is preferred *Required Experience:* - At least 3 years successful technical development experience - Proven ability to manage multiple projects in a fast paced environment - Ability to take ownership over development projects - Knowledge of online social and professional networks and developer interfaces - Strong communication skills, both written and verbal - Experience with requirements gathering *Education:* - Bachelors or graduate degree *Location:* - Austin, Texas Interested parties, please email your resume with the subject line PHP Web Developer to j...@smallworldlabs.com. *About Small World Labs* Small World Labs is an experienced provider of an online community and social collaboration platform that enables organizations to connect with their constituents in new ways. We help non-profit organizations understand how to engage with their members to drive loyalty, create opportunities, ignite conversations, distribute knowledge, and share experiences. What are you offering? Cheers, tedd _ t...@sperling.com http://sperling.com $2/hr. Oh, It's not Friday..
Re: [PHP] Open form in new window
On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: 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 something I don't. Paul Nope. Out of luck. You mean opening a new page while keeping the current page open? Because clicking a form submit *can* open a new page as per the form's action= attribute. If you want the current page to remain open while another page opens, then you'll need a javascript routine to do it. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web Developer Opportunity
On Mar 5, 2013, at 7:18 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: -snip- What are you offering? $2/hr. Oh, It's not Friday.. Is it more on Friday? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web Developer Opportunity
On Wed, Mar 6, 2013 at 1:34 AM, Tedd Sperling t...@sperling.com wrote: On Mar 5, 2013, at 7:18 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: -snip- What are you offering? $2/hr. Oh, It's not Friday.. Is it more on Friday? Friday is the time for jokes on this list, right?
Re: [PHP] Not counting my own page visits
On Mar 4, 2013, at 3:49 PM, David Robley wrote: Misunderstanding what $cookie contains? It is a boolean, i.e. it will be true or false depending on whether the cookie was set or not. To echo the contents of a cookie, you need to use the cookie name, viz ?php echo 'Cookie is: '.$_COOKIE['test2'].br; ? You're right - I didn't really understand cookies. However, with everyone's help here, and by searching the web, I got it to work. Thank you to Tommy, Ash, and David! Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Open form in new window
On 3/5/2013 7:32 PM, Tedd Sperling wrote: On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: 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 something I don't. Paul Nope. Out of luck. You mean opening a new page while keeping the current page open? Because clicking a form submit *can* open a new page as per the form's action= attribute. If you want the current page to remain open while another page opens, then you'll need a javascript routine to do it. Cheers, tedd _ t...@sperling.com http://sperling.com No - you meant to say per the form's TARGET attribute -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php