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

2011-06-09 Thread matty jones
output = ''; foreach ($data as $value) { if ($value == $selectedValue) { $selected = ' selected="selected"'; } else { $selected = ''; } $output .= ''.$value.''; } $output .= ''; return $output;

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

2011-06-09 Thread matty jones
, Jun 9, 2011 at 10:53 AM, Jim Lucas wrote: > 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

[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 foun

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
faultseries = 'Batman'; //declare the php variable $publisher = 'DC Comics'; //declare the php variable $d_series->execute(); //execute the prepared statement and they work just fine. Not entirely sure yet why, I am just starting to really get into PDO's. > Or

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:24 AM, Daniel Brown wrote: > On Fri, Mar 25, 2011 at 08:18, matty jones wrote: > > I get the following error " PHP Notice: Undefined index: publisher in > > /var/www/testfunctions.php on line 65" and I have narrowed it down to > what I &

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:34 AM, Daniel Brown wrote: > On Fri, Mar 25, 2011 at 08:24, Daniel Brown wrote: > > And, now that I'm not on a three-inch screen, I can see that I > didn't read your entire message, so my response appears rather idiotic > --- because you already did the isset(). So

[PHP] possible variable declaration error

2011-03-25 Thread matty jones
I get the following error " PHP Notice: Undefined index: publisher in /var/www/testfunctions.php on line 65" and I have narrowed it down to what I *think* is a variable not being declared. Here is the code. //this will fetch the data from a table $d_series_fetch = $db->prepare("SELECT * FROM de