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
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
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
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
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.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]
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):
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,
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
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
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
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
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
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
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
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
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)
{
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)
{
-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,
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
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
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);
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
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.
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);
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
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:
[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
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.
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
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
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]
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
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
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
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
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
37 matches
Mail list logo