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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.