Jump to content

Thoughts on Multi-purpose Pages


nick1

Recommended Posts

Greetings,

 

I would like to know what your thoughts are on using multi-purpose PHP pages.

I've been reading a little bit about them but am still deciding if I feel comfortable with the idea and if multi-purpose pages just make coding more confusing and if they are a hindrance on server performance.

 

An example I have in mind is this:

 

page1.php contains the following:

 

click here to show all authors in the d.b.

 

page2.php contains the following:

 

displays all authors as requested in page1.php
first author name is displayed here
now click here to delete the author from the d.b.

 

page3.php contains the following:

 

a php script that deletes the selected author

 

So, that's a total of 3 php scripts.

I suppose another option would be to populate a drop-down box with all of the authors in the d.b.

Then, when an author is selected from the drop-down box, a delete button can be clicked and a script on page2.php would be executed which deletes the author from the d.b. So, we've eliminated an additional script.

 

Anyway, I hope this makes sense.  I'm a little fried right now from coding most of the day.  I'd appreciate your feedback.

 

Thanks,

 

*Nick*

 

 

Link to comment
https://forums.phpfreaks.com/topic/38717-thoughts-on-multi-purpose-pages/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.