Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 9:48 PM, Jim Lucas wrote: > On 08/24/2012 12:34 PM, Matijn Woudt wrote: >> >> On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: > > > Personally, I let my code ramble on as long a line as it needs. I use > tabs > (set to 8 chars) in my code. That is b

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 12:34 PM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: Personally, I let my code ramble on as long a line as it needs. I use tabs (set to 8 chars) in my code. That is because the other developers that I work with have editors that can display the tabs i

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: >>> >>> Personally, I let my code ramble on as long a line as it needs. I use >>> tabs >>> (set to 8 chars) in my code. That is because the other developers that I >>> work with have editors that can display the tabs in whatever width they >>> de

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 1:24 PM, Jim Lucas wrote: > Well, not to talk bad about Gmail (I use it for personal accounts), but I > like using a client that I do have some control over what it does to my > email. Making sure that it retains my formatting is one of my first > requirements. I'd like t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 09:28 AM, tamouse mailing lists wrote: On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas wrote: On 08/24/2012 08:01 AM, tamouse mailing lists wrote: OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it i

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:47 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:20 AM, David OBrien wrote: > In gmail if I see something is totally screwed up visually I click the > little dropdown where you'd select reply to all and then choose show > original... > It shows the source of the email in monospaced font so if looks like it was > meant

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:12 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists > wrote: >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:47 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: >> On 08/24/2012 08:25 AM, Matijn Woudt wrote: >>> >>> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your li

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: >> >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just to be able t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:11 AM, Samuel Lopes Grigolato wrote: > Do you mean the ">" quotation marks? Have you tried to create a simple > Notepad++ macro? I do this for things like formatting SQL from SQL Editor to > SQL String in code, and vice versa. No, I mean the way the code is mangled wi

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Thu, Aug 23, 2012 at 2:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: > On 08/24/2012 08:25 AM, Matijn Woudt wrote: >> >> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: >>> >>> Two simple guide lines will help everybody here. >>> >>> 1) Limit your lines to 80 characters >>> 2) Use spaces instead of Tabs >>> >> >>

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces instead of Tabs Are we going to discuss coding guidelines again? The 80-character limit is outdat

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: > Two simple guide lines will help everybody here. > > 1) Limit your lines to 80 characters > 2) Use spaces instead of Tabs > Are we going to discuss coding guidelines again? The 80-character limit is outdated, 100 or 120 is more common today. And

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces instead of Tabs -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread David OBrien
On Fri, Aug 24, 2012 at 11:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: > >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just to be able t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:01 AM, tamouse mailing lists wrote: OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up just to be able to make heads or tails out of something. There are lots of code p

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists wrote: > OT Reply -- just frustrated with the way email screws up program > listings. It's a royal pain to have to strip out code and then put it > in an editor and tidy it up just to be able to make heads or tails out > of something. There ar

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up just to be able to make heads or tails out of something. There are lots of code pasting sites around, but that breaks up the continuity

RE: [PHP] Dynamic Content thoughts

2012-08-23 Thread admin
-Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Thursday, August 23, 2012 4:39 PM To: admin Cc: php-general@lists.php.net Subject: Re: [PHP] Dynamic Content thoughts On Thu, Aug 23, 2012 at 9:51 PM, admin wrote: > Hello everyone, > > In my

Re: [PHP] Dynamic Content thoughts

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Andre Polykanine
Hello Dave, echo "Copyright © Dave Mehler, 2011 — ".date("Y").""; -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message ---

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Lars Nielsen
lør, 30 04 2011 kl. 11:18 +, skrev dholmes1...@gmail.com: > Something simple like this would work > $date=date('Y'); > $startdate='2011'; > if($date == $startdate) { > echo $startdate > } else { > Echo $startdate; > Echo '-'; > echo $date; > > } > Sent via BlackBerry from T-Mobile > > -

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Geoff Lane
On Saturday, April 30, 2011, Simon J Welsh wrote: > I would use something simple like: > if(date('Y') == '2011') { > echo '2011'; > } else { > echo '2011-', date('Y'); > } ... or in one line: echo (date('Y') != '2011' ? '2011-' : '') . date('Y'); However, you might want to chang

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread dholmes1031
Something simple like this would work $date=date('Y'); $startdate='2011'; if($date == $startdate) { echo $startdate } else { Echo $startdate; Echo '-'; echo $date; } Sent via BlackBerry from T-Mobile -Original Message- From: David Mehler Date: Sat, 30 Apr 2011 07:06:17 To: php-general

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Simon J Welsh
On 30/04/2011, at 11:06 PM, David Mehler wrote: > Hello, > > I am trying to use php to put a copyright notice in a page footer. I'm > using the date function with the "Y" value for the year. Here's the > code: > > echo date ('Y'); > ?> > > This works great for a site done in 2011 but next year

Re: [PHP] Dynamic menu

2010-07-19 Thread Dan Joseph
On Sat, Jul 17, 2010 at 5:17 PM, jordan wrote: > I am new in this group and first whant to say hello to all. > Need me menu who have different link if user is login or logout, something > like dynamic menu. Somebody can tall me how can i use and create this > menu.

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Alice Wei
> From: ak...@telkomsa.net > To: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: RE: [PHP] Dynamic Menus in a PHP Form Issue > Date: Tue, 25 May 2010 08:59:08 +0200 > > -Original Message- > From: Alice Wei [mailto:aj...@alumni.iu.edu] > Sent: 24 May

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Arno Kuhl
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 24 May 2010 04:47 PM To: php-general@lists.php.net Subject: [PHP] Dynamic Menus in a PHP Form Issue Hi,I have a snippet as in the following: Select the type of your starting point of interest: A

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 11:38 AM -0400 5/24/10, tedd wrote: At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: id="start_menu"> onclick="alert(document.form1.start)"/> Apartment If I tried to p

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: onclick="alert(document.form1.start)"/> Apartment If I tried to put this at the top of a file where I save as PHP with

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Paul M Foster
On Thu, Nov 19, 2009 at 01:09:48PM -0500, tedd wrote: > At 10:48 AM -0500 11/19/09, Jack S wrote: >> Hi Todd, >> >> This looks like a good starting point for me. >> I was going to use $_SERVER['PHP_SELF']; but I think >> ($_SERVER['SCRIPT_NAME']); in your example will always return just the >> sc

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread tedd
At 10:48 AM -0500 11/19/09, Jack S wrote: Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me tr

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me trouble shooting later! Thanks!!! On Thu, N

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread tedd
At 11:30 AM -0500 11/18/09, Jack S wrote: Hello All, Does anyone have a reference to a program that may be out there to help with using a single header.php for a site, but then dynamically loads different keywords , titles etc based on what page is including the header file? Sample: If home pag

RE: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Ashley Sheridan
On Wed, 2009-11-18 at 21:42 -0800, Daevid Vincent wrote: > > Actually, you can make a site today that uses JAvascript to enhance > > functionality. > > I'd say a fits that category. You can live without it. > > > Something as simple as a title for a page shouldn't be > > relying on Javascript

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
> Actually, you can make a site today that uses JAvascript to enhance > functionality. I'd say a fits that category. You can live without it. > Something as simple as a title for a page shouldn't be > relying on Javascript to function! Shouldn't = I agree. Sometimes the way a page is coded,

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Ashley Sheridan
Wednesday, November 18, 2009 2:24 PM > To: Daevid Vincent > Cc: 'Jack S'; php-general@lists.php.net > Subject: RE: [PHP] dynamic meta tag and title app? > > > Rather than use Javascript, which would limit your site to only those > browsers that support Javascript, hav

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
on how you construct your page and the order of things, and how dynamic you need the title to be. _ From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, November 18, 2009 2:24 PM To: Daevid Vincent Cc: 'Jack S'; php-general@lists.php.net Subject: RE: [PHP]

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Ashley Sheridan
Rather than use Javascript, which would limit your site to only those browsers that support Javascript, have it enabled and aren't using any plugins (like Noscript). You could just use an array with the details in, set the type of page as one of the first things in your script, and then output wha

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
I usually just use some JS in the footer.php of the page to go back and change the title based upon other stuff, say the user's name or whatever: parent.document.title = " :: "; > -Original Message- > From: Jack S [mailto:jacklistm...@gmail.com] >

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-30 Thread MEM
> -Original Message- > From: MEM [mailto:tal...@gmail.com] > Sent: terça-feira, 27 de Outubro de 2009 12:05 > To: 'a...@ashleysheridan.co.uk' > Cc: 'Jim Lucas'; 'php-general@lists.php.net' > Subject: RE: [PHP] dynamic menu with show hide

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>Think of it a bit like an online shop selling operating systems: > >1) All the main OS's you sell are on the front page - Linux, MacOS & Windows >2) User clicks on Linux, and is taken to the url /products/linux and they are >shown all the Linux OS's on offer >(Fedora, SuSe, Ubuntu, Knoppix, etc)

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:39 +, MEM wrote: > >That sounds about right yeah. You could also get a little bit clever and > >only retrieve the rows from your db that >will go to make the array elements > >you'll need. It doesn't make sense to retrieve a full product list each time > >>someone v

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>That sounds about right yeah. You could also get a little bit clever and only >retrieve the rows from your db that >will go to make the array elements you'll >need. It doesn't make sense to retrieve a full product list each time >someone >visits the page, Ok. >so you only need to retrieve t

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 10:25 +, MEM wrote: > >I think the term drop-menu is bad in this case, as essentially what you are > >saying is: > > > >1) user is presented with the basic navigation menu > >2) user clicks an item and page navigates somewhere else > >3) because of the item user clicked

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>I think the term drop-menu is bad in this case, as essentially what you are >saying is: > >1) user is presented with the basic navigation menu >2) user clicks an item and page navigates somewhere else >3) because of the item user clicked in 2) display some extra menu items > Exactly. >That's n

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 00:55 +, MEM wrote: > Thanks a lot for your replies. > > Let's see if I understand, if not, please, let me know, I'm not that > proficient in English. > Second try, in order to accomplish this, I have to: > > > 1) Generate the multidimensional array from query. > >

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread MEM
Thanks a lot for your replies. Let's see if I understand, if not, please, let me know, I'm not that proficient in English. Second try, in order to accomplish this, I have to: 1) Generate the multidimensional array from query. 2) Generate the ul / li menu (echo + foreach) displaying all child

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
"What > if > JS is turned off??" > > Show everything by default. Then, using JS, hide all that should be hidden and > go from their. > > > > > Thanks a lot once again, > > Márcio > > > > > > > > > > From: Ashley Sheri

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Jim Lucas
off??" Show everything by default. Then, using JS, hide all that should be hidden and go from their. > > Thanks a lot once again, > Márcio > > > > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: segunda-feira, 26 de Outubro de 2009 14:38

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
io > > > > > > > > > > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: segunda-feira, 26 de Outubro de 2009 14:38 > To: MEM > Cc: php-general@lists.php.net > Subject: Re: [PHP] dynamic menu with show hide capabilities - > u

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread MEM
-feira, 26 de Outubro de 2009 14:38 To: MEM Cc: php-general@lists.php.net Subject: Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow On Mon, 2009-10-26 at 13:28 +, MEM wrote: Hello all, I'm on my way to build my first dynamic menu using php. Ho

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
On Mon, 2009-10-26 at 13:28 +, MEM wrote: > Hello all, > > I'm on my way to build my first dynamic menu using php. > However, each time I say this, people start jumping at me crying out loud: > "Jquery" . > I don't need js for this. Really. (At least, this is what I believe). > > So I was wo

Re: [PHP] Dynamic array creation and tracking

2009-10-06 Thread tedd
At 12:18 PM -0400 10/6/09, John Nichel wrote: Howdy guys and girls. Been a long time since I've been in these parts. My php is rusty these days, so please bare with me. I'm trying to create a dynamic, multidimensional array, and keep track of which level I'm on, opening and closing levels as ne

Re: [PHP] dynamic navigation menu

2009-06-11 Thread viraj
On Thu, Jun 11, 2009 at 1:21 PM, web wrote: > > Please can some one help me with a dynamic menu. you can accomplish this easily. read about 'recursive functions' > > I have a 2 tables and I want to display the record from the first one as > parent  and the second one as the child. use a mysql

Re: [PHP] dynamic navigation menu

2009-06-11 Thread Ashley Sheridan
On Thu, 2009-06-11 at 09:51 +0200, web wrote: > Please can some one help me with a dynamic menu. > > I have a 2 tables and I want to display the record from the first one as > parent and the second one as the child. > > My problem is when I query the data I can't place the child at their > appro

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread Lists
George Larson wrote: [snip] Donovan: There's no "powers that be" on this list. The closest is Dan and we all ignore him. :-) Next question -- how do you keep login's and passwords safe? Is the following not embedded in the html? [SQLConnect dbType=MySQL&host=192.168.1.1&database=TestNames&uid=

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 10:26 AM -0400 3/21/09, George Larson wrote: For the record, I'm with Tedd. Regardless of this being a "designated" PHP arena, I'm enjoying this WebDNA conversation and might even give it a test drive... One of the good things about this list is that most of us are multi-lingual. Most of

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 8:58 AM, tedd wrote: > At 1:03 PM -0500 3/20/09, Lists wrote: > >> tedd wrote: >> >>> Now, can you show me how to pull data from a mysql database so that the >>> input statements can be created dynamically? >>> >> >> >> Sure, >> On the WebDNA side, it's something like this

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 1:03 PM -0500 3/20/09, Lists wrote: tedd wrote: Now, can you show me how to pull data from a mysql database so that the input statements can be created dynamically? Sure, On the WebDNA side, it's something like this (form of "names" from a database): -snip- However, like you said, this

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread Lists
tedd wrote: [snip] No problem here -- I'm open to all languages. The OP posted his question on a php list and that's the reason why I responded with a php solution. Now, can you show me how to pull data from a mysql database so that the input statements can be created dynamically? Cheers,

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread tedd
At 11:40 AM -0500 3/20/09, Lists wrote: O.K., I may get a back lash.. but I can't resist making a very small plug here for our server side language, WebDNA. Here is the same code in WebDNA: The Form: [loop start=1&end=3] [/loop] The Recieving page code (loop): [formvariables name=go_&exact=F

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread Lists
O.K., I may get a back lash.. but I can't resist making a very small plug here for our server side language, WebDNA. Here is the same code in WebDNA: The Form: [loop start=1&end=3] [/loop] The Recieving page code (loop): [formvariables name=go_&exact=F] [value] [/formvariables] The URL: h

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread tedd
At 12:12 PM -0700 3/18/09, revDAVE wrote: -snip Q: ANY Ideas? To follow up again, here's a demo of what I recommended -- with code: http://www.webbytedd.com//post-array/index.php As you can see, you can have as many input statements as can be generated. There is no need to index each o

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-19 Thread tedd
At 12:12 PM -0700 3/18/09, revDAVE wrote: -snip Q: ANY Ideas? It may look odd, but trash all the count stuff and try this: HTML: PHP: foreach ($_POST['go'] as $a) { echo "$a"; } Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PH

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Shawn McKenzie
Bob McConnell wrote: > From: revDAVE >> Using a repeating region of a query, I want to generate a 'form on the > fly' >> So for each repeat - I have an extra form input >> >> Each input name = thisline >> >> So it will make names like: >> >> thisline1 >> thisline2 >> thisline3 >> Etc. >> >> For

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Paul M Foster
On Wed, Mar 18, 2009 at 12:12:54PM -0700, revDAVE wrote: > Using a repeating region of a query, I want to generate a 'form on the fly' > > So for each repeat - I have an extra form input > > Each input name = thisline > > So it will make names like: > > thisline1 > thisline2 > thisline3 >

RE: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Carlos Garcia
with this is a simple text : $this = 'thisline' . $cnt; echo $_POST[$this]; Carlos A. Garcia Hernandez > Date: Wed, 18 Mar 2009 12:12:54 -0700 > From: c...@hosting4days.com > To: php-general@lists.php.net > Subject: [PHP] Dynamic Form 'on The Fly' > > Using a repeating region of a

RE: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Bob McConnell
From: revDAVE > > Using a repeating region of a query, I want to generate a 'form on the fly' > > So for each repeat - I have an extra form input > > Each input name = thisline > > So it will make names like: > > thisline1 > thisline2 > thisline3 > Etc. > > For the form fields > > --

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread revDAVE
On 3/12/2009 12:25 PM, "Paul M Foster" wrote: > Crap, I hit the wrong button and sent this only to the OP... > > On Thu, Mar 12, 2009 at 09:24:48AM -0700, revDAVE wrote: > Thanks for your help Paul - that makes sense! > > Here is working code to do it better: > > // get your starting date

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread revDAVE
On 3/12/2009 9:39 AM, "TG" wrote: > $currmonth = date("m"); > > for ($i = 1; $i <= 11; $i++) { > $m[$i] = date("m/d/y"), mktime(0,0,0,$currmonth-$i, 1, 2009)); > } > > Something like that. mktime() is remarkably flexible. If you start on > month 3 and you subtract 5, you get month = -2.

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread Paul M Foster
Crap, I hit the wrong button and sent this only to the OP... On Thu, Mar 12, 2009 at 09:24:48AM -0700, revDAVE wrote: > Hi folks, > > My goal was to create a dynamic date related list as follows: > > - take the current date (3/12/2009) > - create a new date from it which would be the *1st* of t

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread Andrew Ballard
On Thu, Mar 12, 2009 at 12:24 PM, revDAVE wrote: > Hi folks, > > My goal was to create a dynamic date related list as follows: > > - take the current date (3/12/2009) > - create a new date from it which would be the *1st* of that month - > (3/1/2009) > > - then create a list that shows the current

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread TG
$currmonth = date("m"); for ($i = 1; $i <= 11; $i++) { $m[$i] = date("m/d/y"), mktime(0,0,0,$currmonth-$i, 1, 2009)); } Something like that. mktime() is remarkably flexible. If you start on month 3 and you subtract 5, you get month = -2. So that would be -2/1/2009, which mktime will

Re: [PHP] dynamic forms

2008-12-16 Thread ceo
If you have their ID when you generate the HTML FORM, there is no need for anything as exotic as Ajax... //get their $ID //query the DB using $ID to get $whatever echo "", htmlentities($whatever), ""; If you don't know their ID until the interact with other form elements, then, yeah, go

RE: [PHP] dynamic forms

2008-12-16 Thread Jay Blanchard
[snip] I would like to create a from that will pull and display information based on a user's ID from a postgresql database into a textarea on the form, before the submit button is clicked. Are there some tutorials on how to use PHP to dynamically display information on a form as the form is being

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
On Jul 31, 2008, at 3:10 PM, Boyd, Todd M. wrote: -Original Message- From: Rahul S. Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 2:06 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 3:04 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Micah Gersten [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 31, 2008 1:59 PM >> To: PHP General list >> Subject: Re: [PHP] Dynamic Sele

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:08 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > You're right. Same principles

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:06 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- > SOLVED!! > > > D

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
You're right. Same principles apply though. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Boyd, Todd M. wrote: > *cough* > > ...pretty sure he wrote "county", guys. ;) > > > Todd Boyd > Web Programmer > -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
Did IT Haha ... just as you were probably writing in & sending this mail. I pretty much used your theory and actually did look around under http://www.w3schools.com/ajax/ to get the relevant AJAX information. Works like a charm. Pretty much using an onChange=grabCountiesfromAnotherPHPpa

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 1:59 PM > To: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > What I usually do is default to the most common country and

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
What I usually do is default to the most common country and show the associated states. You can change the states if they change the country. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Andrew Ballard wrote: > On Thu, Jul 31, 2008 at 12:40 PM, Rahul S. Jo

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
Maybe you should try this library. It comes with examples and is fairly easy to implement. http://xajaxproject.org/ Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Rahul S. Johari wrote: > > In theory your solution sounds extremely feasible & perhaps the > a

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 2:31 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Rahul S. Johari [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 31, 2008 12:27 PM >> To: Boyd, Todd M. >> Cc: php-general@lists.php.net >&g

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 12:40 PM, Rahul S. Johari <[EMAIL PROTECTED]> wrote: > Ave, > > What I have is two Select (Drop-Down) lists (State & County) and I'm > populating them from a mySQL table. What I want is when the user selects the > State from the State List, the County List should only pull o

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 12:27 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > > On Jul 31, 2008

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Rahul S. Johari
On Jul 31, 2008, at 12:55 PM, Boyd, Todd M. wrote: -Original Message- From: Rahul S. Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 11:40 AM To: php-general@lists.php.net Subject: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! Ave, What I have is two Select (D

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 11:40 AM > To: php-general@lists.php.net > Subject: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > Ave, > > What I have is two Select (Drop-Down) lists (State & County) and

Re: [PHP] Dynamic form changes without refresh

2008-06-07 Thread Nitsan Bin-Nun
Try to pull this algorithm into a function, then add it to the onLoad attribute of your body element, so on the each load it call the function which calls it self each X seconds interval (use the functions mentioned by Todd) On 05/06/2008, Mayer, Jonathan <[EMAIL PROTECTED]> wrote: > > Hiya all, >

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Boyd, Todd M.
> -Original Message- > From: Mayer, Jonathan [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2008 7:18 AM > To: 'php-general@lists.php.net' > Subject: [PHP] Dynamic form changes without refresh ---8<--- snip > Using some basic javascript/AJAX, I have set up a link next to each > tex

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Per Jessen
Mayer, Jonathan wrote: > I suppose that, as well as updating the database when I click the > link, I could also update a CSS toggle, but I'd really like it to be > deciding whether to toggle only based on the flag in the database. > > So: > > // check database > if ($toggle == 1) > { >... >

Re: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Wolf
BOTTOM POST Mayer, Jonathan wrote: I suppose that, as well as updating the database when I click the link, I could also update a CSS toggle, but I'd really like it to be deciding whether to toggle only based on the flag in the database. So: // check database if ($toggle == 1) { ... } else {

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
ECTED] Sent: 05 June 2008 13:26 To: php-general@lists.php.net Subject: Re: [PHP] Dynamic form changes without refresh Mayer, Jonathan wrote: > Using some basic javascript/AJAX, I have set up a link next to each > text box, which calls code that updates the database in the background > wit

Re: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Per Jessen
Mayer, Jonathan wrote: > Using some basic javascript/AJAX, I have set up a link next to each > text box, which calls code that updates the database in the background > without refreshing the page. If I manually refresh the page, the > textarea box in question updates correctly, proving that the da

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Ryan S
Hey Bill, Thanks for the tips, makes sense and will try to follow them. Cheers! R * Ryan, Four observations: 1. Don't try to solve your problem by changing the DOCTYPE. Bad HTML is bad HTML. Changing the DOCTYPE may reduce the severity of the problem, but it won't solve it. 2. You

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread tedd
At 12:21 PM -0400 4/9/08, Jason Pruim wrote: I always used to type my HTML is lower case, but I've been trying to get switched over to UPPERCASE to help separate code from content. No reason to do change case and every reason to continue using lowercase. Keep css and javascript unobtrusive

  1   2   3   4   5   >