| | |
PHP Templating system
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2004
Posts: 55
Reputation:
Solved Threads: 0
Hello peeps i need some help for a template system.
i want to make a script so when a user submits a article/tut it automaically sends me a email with a link in it + plus the submited article/tutorial when i click the link it automatically puts the tutorial into my template someting simular to good-tutorials.com :p
i want to make a script so when a user submits a article/tut it automaically sends me a email with a link in it + plus the submited article/tutorial when i click the link it automatically puts the tutorial into my template someting simular to good-tutorials.com :p
Get your websites reveiwed for free! ReviewMyWebSite.com!
Not sure how the other website actually works, but here some suggestions:
1. Create form for users to submit tuts/articles.
2. Validate form and add article to database ('id', 'status', 'article', etc). Make the 'status' of the article submitted as something like 'pending'.
3. Send the article and a link with 'id' of the article to you using mail function. The link will take you to a php page to change the status to either 'accept' or 'decline'.
4. You get the email and if the article ok, you click the link and a page show to prompt you to accept or reject. If, accept, it will displace in your webiste, else, you can either keep it in the db or delete it. You can do many things here.
5. Make sure you have a page that display articles from database where status = 'accept';
Good luck in your development. Drop me an email when it is ready to launch :eek: .
1. Create form for users to submit tuts/articles.
2. Validate form and add article to database ('id', 'status', 'article', etc). Make the 'status' of the article submitted as something like 'pending'.
3. Send the article and a link with 'id' of the article to you using mail function. The link will take you to a php page to change the status to either 'accept' or 'decline'.
4. You get the email and if the article ok, you click the link and a page show to prompt you to accept or reject. If, accept, it will displace in your webiste, else, you can either keep it in the db or delete it. You can do many things here.
5. Make sure you have a page that display articles from database where status = 'accept';
Good luck in your development. Drop me an email when it is ready to launch :eek: .
•
•
Join Date: Nov 2004
Posts: 55
Reputation:
Solved Threads: 0
Could you give me a start point or tell me the functions i will need!?
Get your websites reveiwed for free! ReviewMyWebSite.com!
See http://www.w3schools.com/php/default.asp for the basic. Then, http://www.php-mysql-tutorial.com/index.php for database tutorials.
![]() |
Similar Threads
- Which is the best templating system (HTML and CSS)
- PHP Login System w/ 5 Levels of Security (Show Off your Projects)
- PHP templating (PHP)
- php news system? (PHP)
- PHP templating system (PHP)
Other Threads in the PHP Forum
- Previous Thread: A php question
- Next Thread: This ought to be simple - extra spaces
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





