hey
im building a cms and i dont want a seperate script per section (news, gallery, events etc etc)
so ive made a form with a drop down menu that the user selects to add it to that selection
so if they selected reviews the content of the form would be added to the reviews page but if they selected news it would go onto the news page etc etc
now this was all nice and good until i realised im gonna need a seperate script for a gallery and links section of the site so i became stuck to what to call that script.
I cant excactly call it "text base update" or something like that for hte news, reviews etc
so i thought i have the links of the sections already stored in a seperate table because they are generated when the page is loaded (i want it all to be dynamic)
so i thought on the main page (Where they select to update the site) id have all the pages
news
reviews
interviews
gallery
liinks
which are selected dynamicly from a table
so if they clicked news it would take them to the news script and on the drop down list news would be selected
but then if they clicked reviews they would go to the same page but reviews would be selected
i managed to get this to work
by making the link
newspost.php?qaz=News
and using and if statment
but the only thing with that is if they add a new page called newslettter it wouldnt be dynamic becuase they would have to edit the file to add a new if statment for it select newsletter page
so i thought I selected the contents of the table earlier and hten i could create an array and doing it that way
but i was wondering if anyone has any better ideas
if u wanna see what i mean
http://adamuk.serveftp.com
username: guest
passowrd: options
then under the updateyoursite section click the links and then look at the drop down menu and u will see what i mean
sorry if its a bit confusing
thanks
adam

im building a cms and i dont want a seperate script per section (news, gallery, events etc etc)
so ive made a form with a drop down menu that the user selects to add it to that selection
so if they selected reviews the content of the form would be added to the reviews page but if they selected news it would go onto the news page etc etc
now this was all nice and good until i realised im gonna need a seperate script for a gallery and links section of the site so i became stuck to what to call that script.
I cant excactly call it "text base update" or something like that for hte news, reviews etc
so i thought i have the links of the sections already stored in a seperate table because they are generated when the page is loaded (i want it all to be dynamic)
so i thought on the main page (Where they select to update the site) id have all the pages
news
reviews
interviews
gallery
liinks
which are selected dynamicly from a table
so if they clicked news it would take them to the news script and on the drop down list news would be selected
but then if they clicked reviews they would go to the same page but reviews would be selected
i managed to get this to work
by making the link
newspost.php?qaz=News
and using and if statment
but the only thing with that is if they add a new page called newslettter it wouldnt be dynamic becuase they would have to edit the file to add a new if statment for it select newsletter page
so i thought I selected the contents of the table earlier and hten i could create an array and doing it that way
but i was wondering if anyone has any better ideas
if u wanna see what i mean
http://adamuk.serveftp.com
username: guest
passowrd: options
then under the updateyoursite section click the links and then look at the drop down menu and u will see what i mean
sorry if its a bit confusing
thanks
adam










