Latest News

2013-Jan-27: Version 2.3 Released – A quick (one day) update. Version 2.2 fixed use
of deprecated commands (it worked but threw php errors) and added support for the
Bad Behavior script. Version 2.3 fixed a small error affecting the AJAX file upload form field, changed from a javascript alert box to the more robust jquery cluetip alert for help tips used in the form creation menu, and fixed a problem where the info gif image wouldn’t show properly in some installations. See What’s New for details.

About the phpAddEdit Form Generator Script

phpAddEdit is a menu-driven script that will allow you to generate forms to add and edit content in a MySQL database. Unlike other similar scripts out there, phpAddEdit allows your forms to handle multiple tables. It also has a rich feature set including instant setup, standard and custom form elements, validation (error checking – both via javascript and server-side php), CSS customization, javascript event support, robust layout options, customizable error and execute code, email and/or redirect on submit, dynamic element content, trackback support, automatic RSS creation (including auto pinging of blog directories), human verification, security features and more.

Why I Developed This Script

The simplest answer is that I couldn’t find another script with the features I wanted (if one exists and I missed it please let me know). I run several websites and I had a first-generation attempt to simplify and standardize my various content add/edit needs but, as with so many things, it developed ad-hoc over time and was a bit of a mess. So, with a new, more demanding project in the works I decided it might be worth investing the time to do it right. Then I figured if it works pretty well, why not share it with the world.

I am NOT a professional programmer or a web developer – merely a do-it-yourself webmaster with modest programming skills. So, I really am not making this script available for any kind of recognition or glory and I make no claims to the technical beauty of the code. But, if it can be of help to someone else then why waste all my effort on just myself.

– Jeff Blum

  1. finally i found yours.
    i have been searching one like yours for long long time.
    appreciate for your generosity. Jim

  2. Hi,

    your script is really nice and helpful but every time I try to view the generated form, I see only blank. Test page is working in a weird way. it shows all fields with 1 character size although that i specified the minimum as 5 characters for some fields

    1. I really don't know what is going on so I can't provide much help. I would suggest creating a very simple form and making sure you can view it properly. Then, incrementally increase the complexity of your form to verify it still works. You didn't provide many details (not sure what you could provide though) but are you sure you are including the proper invocation code?

  3. Hi, This script sounds like exactly what I need. I have downloaded it and gone thru the install but can not get it to work. I am a newbie php person but I thought I would look around a little. I found, in a multitude of places, where you used the php shortcode "<?" which does not work under php5. It must be coded as "<?php". I guess I will look some more. Thanks anyhow.

    1. Hi George,

      You are correct and thanks for pointing this out. And shame on me for not having fixed this ages ago. You can change your server settings to accept the short tags. See… or do a web search. When I get back from my extended travels I will make the necessary changes and upload a new version. Until then, my apologies.

    2. I fixed this issue on the latest version so you shouldn't be experiencing this problem. If you are still, please let me know any specific instances (filenames) so I can investigate.

  4. hi,
    Just downloaded V2.3 to run on a Fedora 18 machine. When opening the page I receive multiple errors similar to the one below: They all relate to time
    Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/addedit/index.php on line 63

    Any thoughts?

    1. Sorry for the late reply. My understanding is that this is a php.ini issue, not a problem with my script. In other words, it is something you must fix on your server.

  5. Hi Jeff,
    I got it installed nicely, but can't create a form , at the step 5, it keep getting this error:

    Warning: Invalid argument supplied for foreach() in path/addedit-steps.php on line 382,

    and by the way, does the form can be created in multi language?

    any help would be appreciated

    1. I cannot be sure without more details, but generally that code refers to the tables you selected in a prior setup step. Did you actually select a table or tables? If so, how many?

    2. Hi, do you have a demo how to create a form by using this addedit?
      at step 3 select table filed is too small, the field width callpse, can not find any selection,
      then next step, step 4, you get the follwoing error
      Warning: Invalid argument supplied for foreach() in path/addedit-steps.php on line 382, and I use create new form use new table, I tryed to select two embedied table, looks no error, does that mean we have to use pre build tables? not many selection, only two forms, it can not create new tables?

    3. Charles, I am sorry but I have stopped using this software myself and thus no longer actively support it. I used to have a demo but I have disabled it for several reasons. Your step 4 error makes sense if you were unable to actually select a table in step 3 but why that is the case I have no idea and since I don't have a working copy to test with, I cannot be of much help. Sorry. As for the second comment/question, no the software cannot create any tables, merely work with existing ones. The main reason to use this is to work with two tables (most form builders only work with one) but it does assume you already have two tables you wish to work with. If you don't have any, that might explain your step 3 problem. In general, I recommend phpMyAdmin for creating and editing tables as an administrator. Check it out if you aren't already using it.

  6. Hi

    I am facing the problem
    any one has recently installed the script and solved the problem ?


    at step 3 select table filed is too small, the field width callpse, can not find any selection,
    then next step, step 4, you get the follwoing error
    Warning: Invalid argument supplied for foreach() in path/addedit-steps.php on line 382,

    1. I am not actively supporting this project but I'll try to help if I can. Based on your description, it sounds like the script is not finding any tables in your database. The most logical reason for this would be that your configuration file has some problem – either the database name, database host, database username, or database password are not correct. You can try to change some or all of the debug variables in that same script (config.php) to true and see what messages are displayed.

Leave a Reply

Your email address will not be published. Required fields are marked *