php-general Digest 9 Jun 2011 09:50:49 -0000 Issue 7352

2011-06-09 Thread php-general-digest-help
php-general Digest 9 Jun 2011 09:50:49 - Issue 7352 Topics (messages 313470 through 313480): Re: php-cli-shebang 313470 by: Lists Re: PHP_INI_SCAN_DIR or PHPIniScanDir 313471 by: Richard Quadling 313472 by: Richard Quadling 313473 by: Lester Caine

php-general Digest 9 Jun 2011 22:28:30 -0000 Issue 7353

2011-06-09 Thread php-general-digest-help
php-general Digest 9 Jun 2011 22:28:30 - Issue 7353 Topics (messages 313481 through 313489): trying to combine two forms into a single form 313481 by: matty jones 313482 by: Alex Nikitin 313483 by: Jim Lucas 313484 by: matty jones 313485 by: Jim Lucas

RE: [PHP] Can't use class 'DOMDocument

2011-06-09 Thread admin
http://www.php.net/manual/en/dom.requirements.php They usually post the requirements or dependencies if there are any. Richard L. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Wednesday, June 08, 2011 10:30 PM To: ad...@buskirkgraphics.com Cc:

[PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
I have a mediawiki extension that allows me to design a form in the wiki to facilitate data entry into the wiki and it works good except that I also want to be able to up load images and take the file location/name and enter that into the wiki so that the image displays on the page as well. I

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Alex Nikitin
On Thu, Jun 9, 2011 at 8:37 AM, matty jones urlu...@gmail.com wrote: I have a mediawiki extension that allows me to design a form in the wiki to facilitate data entry into the wiki and it works good except that I also want to be able to up load images and take the file location/name and enter

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 5:37 AM, matty jones wrote: formEl.action += 'title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right. You might be looking for $_GET['title'] in your processing page instead of $_GET['_title'] -- PHP

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
The two forms work fine by themselves, my issue is getting to two of them to work with together, I don't even care if you need to upload the image seperately from submitting the text data as long as it is all on the same page. Thanks for the thoughts on jQuerry, I will look into it. On Thu, Jun

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 8:07 AM, matty jones wrote: The two forms work fine by themselves, my issue is getting to two of them to work with together, I don't even care if you need to upload the image seperately from submitting the text data as long as it is all on the same page. Thanks for the thoughts on

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
I believe this is it. It is part of the mediawiki extension that I used as a starting point for what I need it to do. I am slowly getting better at PHP, this was dropped into my lap and I don't have much experience yet with PHP, I come from bash/sed/awk land. This file is structuredinput.php,

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Alex Nikitin
Actually if you want a very simple way, with a little JS, you can b64 encode the file and fill in the file field in the form with it (you can hide it or dynamically tack it on or something), so that you get everything when you submit the form including the file (you just gotta make a file back out

[PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread George Langley
Hi all. Am fixing some inherited code, and the previous coder created a class, ie: class myClass { function doThis($passedVar) { doSomething; } function doThat($anotherVar) { doSomethingElse; } } BUT, I don't see anywhere

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread Richard Quadling
On 9 June 2011 22:42, George Langley george.lang...@shaw.ca wrote:        Hi all. Am fixing some inherited code, and the previous coder created a class, ie: class myClass {        function doThis($passedVar) {                doSomething;        }        function doThat($anotherVar) {    

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread Paul M Foster
On Thu, Jun 09, 2011 at 03:42:49PM -0600, George Langley wrote: Hi all. Am fixing some inherited code, and the previous coder created a class, ie: class myClass { function doThis($passedVar) { doSomething; } function doThat($anotherVar) {

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread David Harkness
All of the above with a clarification: they are instance methods which you are calling statically. The object is not instantiated in this case. PHP allows this but will issue an E_STRICT warning. To remove the warning just add static before each of them, assuming they are only ever called