[advanced search]
Results from the most recent live auction are here.
17 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 09-21-2003, 04:22 AM   · #1
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
Breast Cancer
anyone got any tips or suggestiongs on this....

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


Please register or log-in into NamePros to hide ads
adam_uk is offline   Reply With Quote
Old 09-23-2003, 01:23 AM   · #2
deadserious
Senior Member
 
Trader Rating: (13)
Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 (Donate)
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
What's the point of having a drop down list if you're just providing a link to click on and having the correct option selected in the drop down list? That seems backwards to me.

Or are you saying that you want to have the correct page selected when they select from the drop down menu?
deadserious is offline   Reply With Quote
Old 09-26-2003, 01:45 PM   · #3
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
Breast Cancer
Quote:
Originally posted by deadserious
What's the point of having a drop down list if you're just providing a link to click on and having the correct option selected in the drop down list? That seems backwards to me.

Or are you saying that you want to have the correct page selected when they select from the drop down menu?



im the biggest prat going, i seriously am

thanks mate (Y) u just solved my problem....i think

cheers
adam_uk is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
YUPPADS http://www.mobisitetrader.com/ Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 07:31 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0