dynamic form application

2014-05-10 Thread edd . cowan
hello guys. i tryng to create a form builder application with a database backend. like wufoo.com im stuck,how do i use jquery to create dynamic forms,and how is the database designed for the actual forms and the data gathered using those forms i'd like to use rdbms preferebly postgres. regards

Re: Dynamic Form

2009-09-24 Thread Brian Victor
victorsubervi wrote: > On Wed, Sep 23, 2009 at 9:13 PM, BJ Swope wrote: >> Is your web browser re-submitting the form with the same data if you >> refresh the screen? > yes I'm surprised no one has mentioned this before, but the standard approach to this problem is to redirect after a successful

Re: Dynamic Form

2009-09-24 Thread BJ Swope
1. Did you try the headers for no-caching of the page? 2. If you wish to avoid dupes in a DB, Primary Keys are the tool to prevent duplicates. On Thu, Sep 24, 2009 at 11:01 AM, victorsubervi wrote: > in line... > > On Wed, Sep 23, 2009 at 9:13 PM, BJ Swope wrote: > >> What is your code not doin

Re: Dynamic Form

2009-09-24 Thread victorsubervi
in line... On Wed, Sep 23, 2009 at 9:13 PM, BJ Swope wrote: > What is your code not doing? > see below > > Are you winding up with duplicate data in the DB? > yes > > Is your web browser re-submitting the form with the same data if you > refresh the screen? > yes > > Is your web browser pr

Re: Dynamic Form

2009-09-23 Thread BJ Swope
What is your code not doing? Are you winding up with duplicate data in the DB? Is your web browser re-submitting the form with the same data if you refresh the screen? Is your web browser pre-filling the fields of the form due to caching? I don't understand what's not working On Wed, Sep 23, 2

Re: Dynamic Form

2009-09-23 Thread Victor Subervi
I've been trying the hidden field, but the problem is that when I set the variable flag, it stays in memory. I would rather just pass a var like I've been trying, but I don't think it's possible. Any ideas? Is a session cookie the only way? Here's more simplified code: #!/usr/bin/python import cg

Re: Dynamic Form

2009-09-22 Thread BJ Swope
e) > cursor.execute(sql) > > snip > i = 0 > while i < num: > print '\n' > print "Category: maxlength='100' name='cat%s' />\n" % (str(i)) > print "Item: name='item%s' />\n"

Re: Dynamic Form

2009-09-22 Thread Victor Subervi
'\n' print "Company Name: \n" % (company) if num == 0: print "How many rows of products shall we include? \n" else: print "\n" print "\n" % (num) i = 0 while i < num: print '\n' print "Category: \n" % (str(i))

Re: Dynamic Form--Potential purge cache?

2009-09-22 Thread bouncy...@gmail.com
: Re: Dynamic Form On Tue, Sep 22, 2009 at 10:46 AM, Victor Subervi wrote: > Hi; > I have a dynamic form in which I do the following: > 1) Request two fields (company name, number of entries). That is sent back > to the form. > 2) If the two fields are not None, the form requests o

Re: Dynamic Form

2009-09-22 Thread Simon Forman
On Tue, Sep 22, 2009 at 10:46 AM, Victor Subervi wrote: > Hi; > I have a dynamic form in which I do the following: > 1) Request two fields (company name, number of entries). That is sent back > to the form. > 2) If the two fields are not None, the form requests other data. That,

Dynamic Form

2009-09-22 Thread Victor Subervi
Hi; I have a dynamic form in which I do the following: 1) Request two fields (company name, number of entries). That is sent back to the form. 2) If the two fields are not None, the form requests other data. That, too, is sent back to the form. 3) That new data is then entered into a MySQL table