[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 09-21-2003, 04:22 AM   #1 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (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
adam_uk is offline  
Old 09-23-2003, 01:23 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (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  
Old 09-26-2003, 01:45 PM   #3 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (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  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 10:13 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85