473,696 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make a form generator script? Or dynamic generation script?

246 New Member
By generator I mean, like MakeForm('Form1 '); pushes out a user password form. Then MakeForm('Form2 '); make form that adds Car data information into a DB?
That kind of thing.

I was originally thinking about a "String" parser like this: "fName=Name|fTy pe=Text|fSize=1 3|fMaxLen=25|". Would print out a <input> tag with the above listed parameters.

Anyone have a thought on this?

Cause my project is gonna have atleast 20 forms or more. And i'd rather have a dynamic maker / parser / etc, then 20+ individual form functions or w/e. It feels sloppy and not well made.
Dec 10 '10 #1
4 3126
1,206 Recognized Expert Top Contributor
I don't really see the value in this. It seems like a lot of effort for very little gain.

Why would you have 20+ individual form functions?
Dec 13 '10 #2
246 New Member
Well. When I developed my mock-up for a project of mine, I made a 1 function for everything just to get the idea or how everything will work, and display properly and all that. Plus it was to show the customer.

But what I see in this, value wise, is that instead of having an individual form for each feature / function of the project, have something that generates the form on demand.

You being way more experienced then myself. If you had a project that had many forms in it, how would you go about it?
Dec 13 '10 #3
1,206 Recognized Expert Top Contributor
Would your function be purely for outputting the HTML required for the forms? Also if you are taking in all the parameters for each element on the form you are essentially typing the entire form element out except the input tag itself and some quotes?

Without knowing more about your requirements it is hard to say but in general I would have a page with my form and a separate page that processes that form.
Dec 13 '10 #4
246 New Member
Yes it would be purely HTML.
Sorry for the late reply. I was putting together my forms ( it took this long because I procrastinate a lot.

I'm missing two forms right now. One of them will be the more complicated of them all, and I'm debating how to do it still.

Tell me JKing. Does this "Style" work for you? Or would you do this differently? This is the most "Compact" I can make it right now with out having a form generator. Even still it would be 'fun'... lol

Though I was debating on one way to make the forms was to basicly scan the db tables for type / len to do some processing based on that. Still mulling over the possibilities.
Attached Files
File Type: txt inc-form.php.txt (10.1 KB, 385 views)
Dec 17 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

by: fowlertrainer | last post by:
Hi ! Is anyone know about a DB form generator unit under wxPython ? What that's means ? I add information about a Query, or a ListOfDict, I set some other infos (Lookups, others), and it is generate a Form with edit boxes, listboxes, etc. Then I can fill up the form with a record's datas. User can modify them. After I can call Apply method, and every modifications are stored in a
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see "TAG#") when more than 1 number (see "VLANS") is inputed into my form. QUESTION: How do I make my dynamic form have a dynamic input box(which is created by checking the checkbox and calling the functionC1) inside it and still be able to pass the...
by: Peter.Smith1981 | last post by:
Dear All, I've a problem , that was when I creat web page,many script cannot load on same layer.One script onload, last line the </body>. So that I've find any way , but... So you point out to me., How to do that case or that matter?
by: Cc | last post by:
hi, how do I make form background colour transparent when I set border style to none?
by: ed kool | last post by:
Question how to code "multipart/form-data” in a PHP script ? We are trying to make our program trchat.exe work via the following PHP script: <?php $lang = " English to Dutch"; $postdata="select=".$lang."&TEXTAREA1=testtext";
by: Radenko Zec | last post by:
How to programatically add C# form to existed solution? I want to make program(C# form generator),to create solution,add project to new solution,and add several forms later without even opening Visual Studio. I suspect that development such project include use Visual Studio Add-in? Please help me?
by: oakwoodman | last post by:
I have a UNIX script that invokes a DB2 UDB .sql script. I need to pass parameters to the .sql script from the .sh. How does one reference the parameters in the .sql script? The .sql script is not a procedure construct.
by: rohitkec | last post by:
I have to run a shell script by perl script & intert some echo statements in the function calls of the shell script.I am new to both perl 7shell script ,please help........
by: karthiknd | last post by:
hi everyone , i need a DOS script or WS script which copy folder from one system and has to be replaced in server folder which is in another system. This DOS script or WS script has to be called in asp.net page. Each time when asp.net page refresh the script function is to be called and has to be replaced all files in server folder.
by: J. Cliff Dyer | last post by:
On Thu, 2008-05-08 at 10:33 -0500, Victor Subervi wrote: Why are you dynamically creating getpic20.py? Obviously, in the real script, you probably have several of them: getpic1.py, getpic2.py, etc., but is there any reason you couldn't just have one getpic.py, and pass the number in as a parameter in your GET request, like this: http://localhost/getpic.py?id=6&x=1&w=20
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.