English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there a way that I can create a page to approve submissions to my database from other users before they post to the database?

2006-09-17 10:24:36 · 2 answers · asked by detroitkid17 2 in Computers & Internet Programming & Design

2 answers

There are two particular approaches to this that are fairly common. One uses two database tables to separate approved and unapproved posts, where the page you want to create will copy the data from an unapproved post to a new record in the approved table and delete the record from the unapproved table. The other approach uses a single table for all posts and uses a single column to indicate whether or not posts are approved or not, generally using some kind of default value (like NULL) to indicate unapproved posts. You can then modify the page to display approved submissions to filter the data is displays depending on which method you use.

2006-09-17 10:28:30 · answer #1 · answered by tobias382 1 · 1 0

If the entry is one line and you are checking like the email address field was indeed email one good way is to use JavaScript to verify entry before submit.

2006-09-17 10:57:20 · answer #2 · answered by Andy T 7 · 0 0

fedest.com, questions and answers