PHP Scripts for a new music website
Posted: Sat Oct 25, 2008 6:49 am
Hiya Everyone,
I'm new here so this is my first post but not my last. I need quite a bit of help with quite an ambitious plan I have for my new music website.
I am very good a creating HTML Forms and using CSS to style them but when people hit submit, I need help with the PHP scripting
I am happy to look through tutorials and learn the language if you can recommend some.
My Fantastic Idea - Part 1
I want a page called 'Submit a Review' where people can write a review of a gig, hit submit and then a PHP script does the following...
adds some HTML tags like <h1>, <p> and <float>.
adds some code to the end that will be the footer.
Save's the review as a HTML file in a folder called /includes/submissions/
Emails three email addresses with the the subject 'xxx has submitted a review'
The email should contain the review in plain text plus a link to the saved file.
This page should only be accessible by people who know the submission password. This password should be encrypted. I'm not going to bother with separate accounts.
The fields in this form will be... Title, Image URL, Review, Author, Password (again), Another box for called something like 'name a fruit' to stop bots? maybe?
Part 2
I want a password protected page called 'Approve a Review' where there are three large textareas with the html code of the newly submitted review, my homepage, my RSS feed and my navigation menu. So I am then able to edit the html of these pages to include the new review (using SSI), hit submit and the pages will be overwritten. There should also be an option to download the current html files as backup if the whole process goes tits up!
So what do you think guys? Is this possible? Can you recommend any tutorials?
I'm new here so this is my first post but not my last. I need quite a bit of help with quite an ambitious plan I have for my new music website.
I am very good a creating HTML Forms and using CSS to style them but when people hit submit, I need help with the PHP scripting
My Fantastic Idea - Part 1
I want a page called 'Submit a Review' where people can write a review of a gig, hit submit and then a PHP script does the following...
adds some HTML tags like <h1>, <p> and <float>.
adds some code to the end that will be the footer.
Save's the review as a HTML file in a folder called /includes/submissions/
Emails three email addresses with the the subject 'xxx has submitted a review'
The email should contain the review in plain text plus a link to the saved file.
This page should only be accessible by people who know the submission password. This password should be encrypted. I'm not going to bother with separate accounts.
The fields in this form will be... Title, Image URL, Review, Author, Password (again), Another box for called something like 'name a fruit' to stop bots? maybe?
Part 2
I want a password protected page called 'Approve a Review' where there are three large textareas with the html code of the newly submitted review, my homepage, my RSS feed and my navigation menu. So I am then able to edit the html of these pages to include the new review (using SSI), hit submit and the pages will be overwritten. There should also be an option to download the current html files as backup if the whole process goes tits up!
So what do you think guys? Is this possible? Can you recommend any tutorials?