php-general Digest 22 Sep 2013 13:12:45 -0000 Issue 8372
php-general Digest 22 Sep 2013 13:12:45 - Issue 8372 Topics (messages 322142 through 322143): Re: jquery fill select option value 322142 by: Ashley Sheridan 322143 by: Jim Giner 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--- iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, Regards, Iccsi, Yes it is possible but a) not at server side because JavaScript is run on the browser, and b) this is a PHP list not a JavaScript list. Saying that, why aren't you populating it on the server side with PHP? Thanks, Ash ---End Message--- ---BeginMessage--- On 9/22/2013 3:52 AM, Ashley Sheridan wrote: iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, Regards, Iccsi, Yes it is possible but a) not at server side because JavaScript is run on the browser, and b) this is a PHP list not a JavaScript list. Saying that, why aren't you populating it on the server side with PHP? Thanks, Ash Not sure what you are asking. With PHP it is possible to have a specifi item from the options selected in the drop down when the page is loaded. With JS it is possible to capture the newly selected option value and place it in another field, if that is what you want. Obviously when the user clicks on an option, that value IS placed in the select tag for processing at the server side by PHP on submit. So what is it you want to accomplish? ---End Message---
php-general Digest 23 Sep 2013 04:49:40 -0000 Issue 8373
php-general Digest 23 Sep 2013 04:49:40 - Issue 8373 Topics (messages 322144 through 322148): Re: jquery fill select option value 322144 by: Tedd Sperling 322145 by: Jim Giner 322146 by: Tedd Sperling Re: Friday's Question 322147 by: Jonesy Re: Apache's PHP handlers 322148 by: Tamara Temple 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--- On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd ___ tedd sperling tedd.sperl...@gmail.com ---End Message--- ---BeginMessage--- On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd ___ tedd sperling tedd.sperl...@gmail.com OH!!! So you want to populate another(!) select box after the user makes his first selection. You didn't say that. Yes - ajax call would be just what you want to do. ---End Message--- ---BeginMessage--- On Sep 22, 2013, at 12:47 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd OH!!! So you want to populate another(!) select box after the user makes his first selection. You didn't say that. Well... not meaning to disagree -- but he did say: I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I took that to mean fill another option control. Why would one want to change the values of the current one? tedd ___ tedd sperling tedd.sperl...@gmail.com ---End Message--- ---BeginMessage--- On Fri, 20 Sep 2013 12:51:49 -0400, Tedd Sperling wrote: Do you use a Mousepad? Age: 70 Mousepad: No. Been using trackballs since 1993... (No room for a mousepad on _my_ desktop!) ---End Message--- ---BeginMessage--- On Sep 19, 2013, at 9:14 AM, Arno Kuhl a...@dotcontent.net wrote: Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test:
Re: [PHP] jquery fill select option value
iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, Regards, Iccsi, Yes it is possible but a) not at server side because JavaScript is run on the browser, and b) this is a PHP list not a JavaScript list. Saying that, why aren't you populating it on the server side with PHP? Thanks, Ash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] jquery fill select option value
On 9/22/2013 3:52 AM, Ashley Sheridan wrote: iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, Regards, Iccsi, Yes it is possible but a) not at server side because JavaScript is run on the browser, and b) this is a PHP list not a JavaScript list. Saying that, why aren't you populating it on the server side with PHP? Thanks, Ash Not sure what you are asking. With PHP it is possible to have a specifi item from the options selected in the drop down when the page is loaded. With JS it is possible to capture the newly selected option value and place it in another field, if that is what you want. Obviously when the user clicks on an option, that value IS placed in the select tag for processing at the server side by PHP on submit. So what is it you want to accomplish? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] jquery fill select option value
On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] jquery fill select option value
On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd ___ tedd sperling tedd.sperl...@gmail.com OH!!! So you want to populate another(!) select box after the user makes his first selection. You didn't say that. Yes - ajax call would be just what you want to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] jquery fill select option value
On Sep 22, 2013, at 12:47 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is appreciated, Your help and information is great appreciated, While jQuery is great, you don't need jQuery for this -- a simple AJAX routine will do what you want. Here's an example: http://php1.net/a/zipcode-states/ The ajax routine is there -- you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd OH!!! So you want to populate another(!) select box after the user makes his first selection. You didn't say that. Well... not meaning to disagree -- but he did say: I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I took that to mean fill another option control. Why would one want to change the values of the current one? tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Friday's Question
On Fri, 20 Sep 2013 12:51:49 -0400, Tedd Sperling wrote: Do you use a Mousepad? Age: 70 Mousepad: No. Been using trackballs since 1993... (No room for a mousepad on _my_ desktop!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache's PHP handlers
On Sep 19, 2013, at 9:14 AM, Arno Kuhl a...@dotcontent.net wrote: Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP (?php phpinfo(); ? would be enough) and upload it to the www root of your site and name it test.pgif. Then hit http://www.yourdomain.com/test.pgif in your browser. If you see the PHP code or an error then you're fine. If you see PHP's info page then you need to change web host as quickly as possible. I don't care if they fix it - the fact their server was configured to do this by default is enough for me to never trust them again. -Stuart -- Thanks Stuart. I just tried it now, test.php.pgif displayed the info while test.xyz.pgif returned the content, confirming the problem. My service provider finally conceded the problem is on their side and are looking for an urgent fix, much too complicated to consider moving service providers in the short term. As a side note, the sp said the issue is new and coincided with an upgrade to fastcgi recently, I wonder if the hacker was exploiting a known issue with that scenario? Cheers Arno GoDaddy's default plesk-generated configuration for FastCGI-served PHP files only looked to see if the file contained .php somewhere on it's path - i.e. it would happily execute 'malicilous.php.txt' as php code, even something ridiculous like 'malware.phpnoreallyiwantthistorun'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php