Dynamic Web Page Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JPC0480
Forum Newbie
Posts: 3
Joined: Wed Jun 18, 2008 10:34 am

Dynamic Web Page Help

Post by JPC0480 »

I am new to anything PHP and wanted to help a friend with a website. I've designed all of the pages in the site and wanted a little help designing one "Dynamic Page".

He is in the Custom Home Builder field and he needs a page where he could upload photos of the houses as well as a form to fill out these fields - Address Location, Description of Home, & Realtor/Contact Info.

I already have the layout complete for the site and wanted to know if someone could either point me in the right direction or help me out. I would also need to have a secured login for the page as well.

Thank you.
User avatar
Frozenlight777
Forum Commoner
Posts: 75
Joined: Wed May 28, 2008 12:59 pm

Re: Dynamic Web Page Help

Post by Frozenlight777 »

Well it's not as simple as you may think. If you're making a page so your friend can upload information you need to ask a few questions.

1) Where is the information going to? (ie a database)
2) If it's a link, what's going to stop a viewer or maybe an attacker of uploading whatever information they want?

so you may need to have some authentication process.
What you're looking for is the something along the lines of a simple CMS (content management system)
JPC0480
Forum Newbie
Posts: 3
Joined: Wed Jun 18, 2008 10:34 am

Re: Dynamic Web Page Help

Post by JPC0480 »

Frozenlight777 wrote:Well it's not as simple as you may think. If you're making a page so your friend can upload information you need to ask a few questions.

1) Where is the information going to? (ie a database)
2) If it's a link, what's going to stop a viewer or maybe an attacker of uploading whatever information they want?

so you may need to have some authentication process.
What you're looking for is the something along the lines of a simple CMS (content management system)
Here let me see if I can answer your questions...

1)Yes I would be using a database.
2)Yes I would need a user login page.
User avatar
Frozenlight777
Forum Commoner
Posts: 75
Joined: Wed May 28, 2008 12:59 pm

Re: Dynamic Web Page Help

Post by Frozenlight777 »

Do you have the database setup? If so:

Implement a login script to determine if the user has privileges to the uploadcontent page then have a page where the said user can upload their information and after submission, the information gets stored in the database. Once the user has entered the information you have to modify the pages so that they select the information from the database so it's viewable.

If you are very new to php, I can show you some simple code to accomplish this but there's quite a bit to it. I'd recommend reading a few tutorials on the different topics such as: user authentication/sessions and mysql queries
JPC0480
Forum Newbie
Posts: 3
Joined: Wed Jun 18, 2008 10:34 am

Re: Dynamic Web Page Help

Post by JPC0480 »

Frozenlight777 wrote:Do you have the database setup? If so:

Implement a login script to determine if the user has privileges to the uploadcontent page then have a page where the said user can upload their information and after submission, the information gets stored in the database. Once the user has entered the information you have to modify the pages so that they select the information from the database so it's viewable.

If you are very new to php, I can show you some simple code to accomplish this but there's quite a bit to it. I'd recommend reading a few tutorials on the different topics such as: user authentication/sessions and mysql queries
I think I now understand just how complex this project really is. I have done some tutorials on mysql queries, but think that I still need help. I will work on user authentication/sessions and see what I can come up with... I thought by only having a few fields this would be kind of simple. Now I'm starting to see that this is a little bit more detailed oriented.
Post Reply