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

[PHP] Re: PHP Dynamic Form Generator

2007-04-16 Thread Manuel Lemos
Hello, on 04/16/2007 11:14 AM Tom Chubb said the following: > Dear list, > I'm currently reviewing a load of scripts to dynamically generate a form > for > a membership system. > I have designed a registration form, and once registered and logged in > there > are a load of different options releva

Re: [PHP] dynamic form

2006-03-15 Thread chris smith
On 3/15/06, Mark <[EMAIL PROTECTED]> wrote: > Can anyone help to make this form dynamic, at hte moment a user picks a > round number from 1-22 but if that round is closed then sends them back to > this page. Anyway of making the form show the current round (as in sports > round fixtures) without ad

Re: [PHP] Dynamic Form List - how to change values

2006-03-10 Thread Jochem Maas
tedd wrote: Pat: I would suggest changing to: http://.../chkout.php?imagename=NATURE-1.jpg&count=6&continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually "getting" try: echo (""); echo (""); echo ("GET info:\n"); print_r($

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread Pat
Thanks to all who helped. The answer...drumroll arrays for each entry: load routine (partial): print "name='imageqty[]' size='5' value='$qty'>"; print "value='".$row[cialbum]."'>"; print ""; print "value='".$row[ciimage]."'>"; print "value='".$row[cisize]."'>"; retrieval rou

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread tedd
Pat: I would suggest changing to: http://.../chkout.php?imagename=NATURE-1.jpg&count=6&continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually "getting" try: echo (""); echo (""); echo ("GET info:\n"); print_r($_GET); echo("");

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread Pat
tedd wrote: I have a list from a MYSQL database that I am dumping to a screen. I'd like the user to be able to change the quantity on the form for any record on the screen, then post that information back so the user can review it, and I can then update the database. Simple checkout routine.

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread tedd
I have a list from a MYSQL database that I am dumping to a screen. I'd like the user to be able to change the quantity on the form for any record on the screen, then post that information back so the user can review it, and I can then update the database. Simple checkout routine. Or so I thoug

Re: [PHP] Dynamic Form checking

2003-09-08 Thread Dan Anderson
if $quantity isn't filled you get NULL or FALSE. so you could use: if ($_POST['variable']) etc. Try posting less code and more question to the list. Nobody's going to wade through 5 pages of code to analyze it and give you an answer. -Dan On Mon, 2003-09-08 at 03:41, Aris Santillan wrote: >

RE: [PHP] dynamic form display??

2003-07-03 Thread Jay Blanchard
[snip] On the form that I am creating I allow the user to browse for a file. I would like it that once the user selects the file, that it displays only the file information in a on the same page. The idea is that the user can keep browsing and selecting files and the file information (location a

Re: [PHP] Dynamic Form

2003-03-24 Thread Charles Kline
If the page does not submit between changes, PHP will not be much help, that would be JavaScript's job. You could use PHP to prepare the arrays that JavaScript will use to accomplish this. - Charles On Monday, March 24, 2003, at 11:32 AM, Keven Jones wrote: Hi, Can someone tell me if I can us

Re: [PHP] Dynamic Form

2003-03-24 Thread Randum Ian
Hi Keven, > Hi, > > Can someone tell me if I can use php to accomplish > the following: > > I would like to create a form that can: > > A. Total the sum of a certain number of numerical > fields, Before the user clicks submit > > B. Automatically fill in sections of a form > based on selection

Re: [PHP] Dynamic Form

2003-03-24 Thread Awlad Hussain
use javascript - Original Message - From: "Keven Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 4:32 PM Subject: [PHP] Dynamic Form > Hi, > > Can someone tell me if I can use php to accomplish > the following: > > I would like to create a form that can

Re: [PHP] Dynamic Form

2001-09-12 Thread Andrew Hill
Here is my take on it, cobbled together with the help of a js wizard friend of mine: Dynamic Dropdown Menus

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Brooke
> Hell0, > > I have a MySql database with 3 columns. The first column is "id" second > is "name" and third is "value", I have two drop-down lists, with the > first filled with an array from the column "name". I would like for the > second drop-down list be changed according to the "value" of wha

RE: [PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
12, 2001 4:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected in the first drop down. You can either reload the page with the new value once the user has selected the value for the first drop down list, and go from there, or use

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
Oops... My bad. I misread the question... Ignore my previous reply. -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 6:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo "\n"; while($row = mysql_fetch_assoc($yourquery) echo "{$row['name']}\n"; echo "\n"; Just insert a ternary operator in there, and check if the submitted value is equal to the database row's value... If so, add "SELECTED" to the OPTION tag. --Matt -Original Message- From:

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Bell
PHP does not know what the user has selected in the first drop down. You can either reload the page with the new value once the user has selected the value for the first drop down list, and go from there, or use Javascript. - Original Message - From: "Jared Mashburn" <[EMAIL PROTECTED]>