Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
Should I make one processing script for both of these and send extra vars to tell the script which query to perform, or should I keep it simple and use two separate scripts.
I'll have 10-15 pairs of such new/modify scripts. What do db programmers usually do?
So if the page does offer two functions (update and delete) I will write the code on that same page and test the submit variable to determine which code to run.
Unless of course that I want extra validation on a delete in which case I make it into a separate screen: Are you SURE you want to delete?
But I find that having all the code on one page helps me stay organized as the site grows.