Hi,

I work for a isp. We have portal where often simple contactforms with db's has to be made. For our b-b clients also.

In our staff there are editors who don't program but who update the site and who implement things we program.
Well I was sick and tired of doing this simple task and here's my solution.

I builded 1 table with all fields that could ever be wanted in a contactdb. Also some extra fields(you never know). Wrote a connection-cgi that has to be called from the form. In the form had to be given a INPUT=HIDDEN with the name of which place the contactform whas calling from.
Next step was a bit trickier. I made a cgi-script where you check which fields you needed and it builded the HTML code that was between <FORM ..> to </FORM> so they just had to copy and paste it in they're dreamweaver(*yuk*).

No more making contact-tables and input-tags.

Why did I did this. Well, because I'm lazy :-)

Replies are listed 'Best First'.
RE: Generating forms
by Anonymous Monk on Jul 13, 2000 at 12:53 UTC
    Thinkking of dreamweaver, it seems an increasingly large part of my time is spent tidying our designer's code. For example, stripping font tags (i hate font tags *mutter*) and replacing them with style sheet entries.

    Then you run into dreamweaver lines like this......

    <td align="left" width="412"><i><b></b><b></b></i><b></b> <td>
    It isnt worth stripping... but, well, dont /YOU/ wish you could design like that ;)

    Oh, BTW, I'm looking into writing a HTML::Office module. One that will read in an Office generated HTML file and turn it into actual HTML. Any comments? ;)

    Edit by tye

RE: Generating forms
by Anonymous Monk on Jul 13, 2000 at 12:55 UTC
    Thinkking of dreamweaver, it seems an increasingly large part of my time is spent tidying our designer's code. For example, stripping font tags (i hate font tags *mutter*) and replacing them with style sheet entries. Then you run into dreamweaver lines like this...... <td align="left" width="412"><i><b></b><b></b></i><b></b> <td> It isnt worth stripping... but, well, dont /YOU/ wish you could design like that ;) Oh, BTW, I'm looking into writing a HTML::Office module. One that will read in an Office generated HTML file and turn it into actual HTML. Any comments? ;)
      Well,

      I hate style-sheets, they only matter when you have many td's where you have to put in font tags... But then again when there are a lot of td's you better use dynamically made html-pages from a DB or something.

      People without style-sheets get a ugly site, well I want ot avoid that. I want a nice site where netscape and IE on PC and MAC can see a nice site...


      This are my 1 Belgian Frank Opinion on designing websites.

      --
      My opinions may have changed,
      but not the fact that I am right