make the base of the page in whatever HTML you know.
Now for the dropdown make it link to {pagename}.php?article={name of the article}
Now in your html add this code to where you want the image and info about article to show:
PHP Code:
<?php
$article = $_GET['article'];
if ($article == 'Article Name 1')
{
echo "Whatever html you want will go in here between the quotes, for that particular article";
}
elseif ($article == 'Article Name 2')
{
echo "Whatever html you want will go in here between the quotes, for that particular article";
}
elseif ($article == 'Article Name 3')
{
echo "Whatever html you want will go in here between the quotes, for that particular article";
}
else
{
echo "This is what shows if no article has been selected";
}
?>
Add more "elseif"'s for each article you want to add...make sure they are before the "else".
I hope you get what i mean...btw the page with teh articles will have to have the extension '.php'...
If you want me to set this up for you you can PM me the html for the site and i will add the php to it for you...
Bookmarks