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

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 8:58 AM, tedd tedd.sperl...@gmail.com 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

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

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

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=1end=3] input name=go_[index] value= / [/loop] The Recieving page code (loop): [formvariables name=go_exact=F]

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=1end=3] input name=go_[index] value= / [/loop] The Recieving page code (loop):

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-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: input name=go[] type=text value= size=5 maxlength=5 / PHP: foreach ($_POST['go'] as $a) { echo $a; } Cheers, tedd -- --- http://sperling.com

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?php echo $cnt; ? So it will make names like: thisline1 thisline2 thisline3 Etc. For the form fields

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 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?php echo $cnt; ? So it will make names like: thisline1 thisline2

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?php echo $cnt; ? So it will make names like: thisline1 thisline2 thisline3 Etc. For the form

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

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

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
Jessen [mailto:[EMAIL PROTECTED] 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

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

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 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 text box,

[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 relevant to

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 adding

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.jpgcount=6continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually getting try: echo (br/); echo (pre); echo (GET info:\n);

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

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
Pat: I would suggest changing to: http://.../chkout.php?imagename=NATURE-1.jpgcount=6continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually getting try: echo (br/); echo (pre); echo (GET info:\n); print_r($_GET); echo(/pre);

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 td align='center' valign='top'input type='text' name='imageqty[]' size='5' value='$qty'/td; print input type='hidden' name='hiddenalbum[]' value='.$row[cialbum].'; print input

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 textarea on the same page. The idea is that the user can keep browsing and selecting files and the file information

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: A.

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 selections made by

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

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]

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo SELECT NAME=\whatever\\n; while($row = mysql_fetch_assoc($yourquery) echo OPTION . ($whatever == $row['value']? SELECTED :) .VALUE=\{$row['value']}\{$row['name']}/OPTION\n; echo /SELECT\n; Just insert a ternary operator in there, and check if the submitted value is equal to the

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 Jared Mashburn
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 Javascript

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 what has been

Re: [PHP] Dynamic Form

2001-09-12 Thread Andrew Hill
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 Javascript