NOTICE: This Script is No Longer Supported
I developed this script some years back, before WordPress became so popular. In fact, I have now switched all my websites to use WordPress so I don’t even use this script myself. The last I checked, it should still work (not so sure about PHP7 support though, probably some issues) so if you are still developing by hand and need the features of this script, give it a try. But, I will not be updating it going forward.
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
finally i found yours.
i have been searching one like yours for long long time.
appreciate for your generosity. Jim
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
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?
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.
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 http://www.webhostingtalk.com/showthread.php?t=61… 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.
yep, same here… thanks george for pointing that out.
any linux command for changing them all at once?
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.
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?
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.
you should set time zone in your php.ini conf file or using date_default_timezone_set() function at the top of the script.
Why does French characters like ê show up as ? in the addedit-error-check.php error popup?
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
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?
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?
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.
Hi
I am facing the problem
any one has recently installed the script and solved the problem ?
quote
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,
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.