|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Submission
Can someone help me setting this up? Here is what I want.
I want a form, including "Title", "Article", and "Author". When someone fills out this form and clicks submit, it is added to some sort of list. Only I, as the webmaster, can look at this list. There I can either decline or accept articles. If an article is declined, it is deleted. If it is accepted, it gets added to the front page. Can someone tell me how I can set this up? I don't know much HTML/Javascipt/whatever. |
|
#2
|
||||
|
||||
|
Simple form submission?
The articles are written in a textarea (its the easiest for a beginner)? I would recommend PHP (if you havea little programming background)... There's millions of tutorials out on google... You may want to set up a test server on your local machine (assuming you don't have a server already) to run the server-side languages... |
|
#3
|
|||
|
|||
|
i will tell you the idea ( assumming that you know any script language ) ...
first you will make 3 table in a database ... 1- the table for the username and password 2- table for temporary articles 3- table for the main articles the first is the controller for the one who will see the temporary articles . the second table will save all articles that the people send to the site - that only you who will see ... the third one is the the table of the accepted articles .. it is easy until now ... right the mechanism of this project will be as below 1- the people will send the articles to the second table 2- you will enter as the one who in the first table 3- you make a page to see the second table data and check all article in it .. 4- if you accept the article make a link to convert articles from the second tables to the thirs 5- if you refused one of them .. just delete it and the visitors of the site will see only the third table .. i will not write in in php language . cause you must first know the basics of it and mysql ( as well ) then try to find how to use php and mysql database in this great site .. ( that you visit now ) .. after that write the code and test it .. it will be yours ![]() |
|
#4
|
|||
|
|||
|
you can do this all in one table, you have everything stored in one table and have a column in that table that says view. All articles will automatically be set to no under view. So you as adminsistrator can see the table and its contents and by a smiple click allow the article to be viewed, or delete the article completely
|
|
#5
|
|||
|
|||
|
Thanks Bruski Alot .. it is a very good idea ( for beginners like me ) the first one is the common .. but your idea is great .. although it is harder .. but not too much ..
.. see you again ![]() |
|
#6
|
||||
|
||||
|
Although both suggestions work, I think aboyousif's is slightly cleaner... you would need username/password in its own table (for authentication), although Galavorn didn't ask for that... frankly i think it would complicate things to begin with, but definately worth looking into in the future
Also, i like the temp table, real table idea... it would make distinguishing actual articles from those pending approval. |
|
#7
|
|||
|
|||
|
np, i was a beginner and i still dont think i know as much as houston or laidback knows. I wonder if they were ever beginners, laidback seems to always have an answer to a question same with houston
![]() |
|
#8
|
|||
|
|||
|
Well, I have no idea what you guys just said.
|
|
#9
|
||||
|
||||
|
Perhaps some beginner tutorials on form submission and database are a great starting point?
Let google be your best friend... ;-) |
|
#10
|
|||
|
|||
|
Better yet, let Dev Articles be your best friend!
![]() Here's a few articles that will get you on your way Galavorn: Creating a Multi-File Upload Script in PHP Database Normalization And Design Techniques MySQL: Open-Source Power Introductory Database Theory: Systems And Design Those should keep you busy for a while! ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Article Submission |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|