NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page anyone got any tips or suggestiongs on this....

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-21-2003, 05:22 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
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
????: NamePros.com http://www.namepros.com/programming/15281-anyone-got-any-tips-or-suggestiongs.html


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
adam_uk is offline  
Old 09-23-2003, 02:23 AM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
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  
Old 09-26-2003, 02:45 PM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
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
????: NamePros.com http://www.namepros.com/showthread.php?t=15281

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

cheers
adam_uk is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:32 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger