hi dean, i hope you know what 'news.php?area=add&action=edit' means. if not:
- the site 'news.php' is called - the vars 'area' and 'action' are defined via 'get'-method -> so in your script you got the values of $area and $action (or better $HTTP_GET_VARS['area'] or $_GET['area'] if register_globals = off). in your script news.php you just need to do something with this vars. (i.e. you switch() on the value and call your subscripts.) there are many concepts on how to structure the code. you can put all your functions in a file and include it in your script. or you can use classes and define all your methods for this class. i would start collecting all the functions of my scripts (what should it do) and from there i would see, what's best. ciao SVEN Dean Hayes wrote: > Hey, > > Well i am a newbie to scripting really i have only started learning > PHP about 5 months ago and so far i seem to be going well i have just > completed a MySQL news board that has a load of functions what i need > to know is the hole news board is in alot of different scripts like > site_setup.php add_news.php delete_news.php and so on and so on what > i want to know is what is the best way to add all of the scripts into > one file say news.php and call it by a link like news.php?area=add or > news.php?area=add&action=edit in all the books and tut's i have that > was not part of them but it seems to be a big part of a good script > can anyone help me with this problem??? > > > Dean "The Insane Guy" Hayes > Mystical Web Designs > http://www.mystical-sector.com > > <-- I design and i redesign but still i never designed true beauty > like you --> > > _________________________________________________________________ > Hotmail is now available on Australian mobile phones. Go to > http://ninemsn.com.au/mobilecentral/signup.asp -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php