Click to See Complete Forum and Search --> : Creating End User Upload and Login Area: NEED HELP!


PharmerGuy
05-28-2006, 01:21 PM
Hey all! Need some help here. I want to create an end user login/data entry page to my indie music website under the audio section. The idea is that any band (artist) unsigned can post their music track(s) with a small blurb about their band along with a picture. In essance, its a very dumbed down myspace idea that allows a paragraph, one picture, a url link to thier site, and an upload option of thier music track(s). Then when they submitt it, it will transfer onto the the page on the fly.

I'm looking to have several things here: (1) A login option that is required. (2) that each submission then list out on a master page only; not several different pages. So in essance the end page will have several listings of bands and their audio tracks on one page. And (3) that it's secure to my server.

So, in essance, I need to learn how to create a login script, and then something similar to a blog but with limited forms to fill in (like stated: a form on "about us", "upload song", "insert picture", "artist name", "band members" - if any).

Here is a link to the site as it stands right now under the audio section:

http://www.pensatos.com/audio/index.html

I want to keep this "look" but have the forms submitted automatically post. Can anyone help by pointing me in the right direction? I'll give you credit on the site for your help!

PharmerGuy
05-28-2006, 05:18 PM
Any help would be greatly appreciated! I'm not looking for anything as complex as myspace but I just want a band to create a profile, upload a song, and it posts on a page one after the other. But the catch is I want it to be in my current format. Please?

Nedals
05-29-2006, 07:53 PM
If you know Perl and mySQL, it's faily straight forward to do what you want.
If not, it can get pretty complex. I highly recomend you use a mySQL database to store and retrive the information.

You will need....
1. a login form added to one of your pages. That's the easy part.

2. a 'login' script AND an 'admin' script to decide which users get access using a table to save the username and passwords. (there are many scripts posted on the web.). You don't want just anyone posting to your site.

3. a table to store the data. This will be used to populate your 'listing' page

4. a script that will output your listings. Here I would recomend you use the HTML::Template module. Using this you can create an HTML page to look like the ones on your site and, with a couple of changes, turn it into a dynamic .tmpl page.

5. You might also want to add an edit page so users can correct errors.

Use strict in your script.
Use the CGI.pm module to get your form data. and make sure your check that the inputted data is what you expect. (use a regular expression here)

chrisranjana
06-01-2006, 12:09 PM
http://www.hotscripts.com/Detailed/4006.html

The above could be a start and you can build upon it to complete a full fledged perl user management system.