How can I run my site so it goes some thing like this.
Index.php3?subject=home
Index.php3?subject=pictures
Index.php3?subject=winamp
Index.php3?subject=conatct
You could use this basic layout in one php page for what you want. You need to read Kevin's tutorial to be able to fully understand the basic concepts of php, if you don't have access to a book or other references.
If ("submit" = $home) {
Coding for main page goes here.
}
If ("submit" = $pictures) {
Coding for picture page goes here.
}
If ("submit" = $winamp) {
Coding for winamp page goes here.
}
If ("submit" = $contact) {
Coding for contact page goes here.
}
I believe that coding is correct, but I am not 100% positive that it is.
I did this for just one page on my site and it made the page 40k. It doesn't matter cause I had to do it, but still, that was for only two sections, and if you have 5 it will take the page for ever to load. I am talking about the if (subject == "Contact) {
echo ("Contact Text");
}
...
Thank To All
Can if some one plz send me a template of aroud two pages. Which I can test on my computer as I have php etc installed.
And can I change the
index.php3?subject=contacts to
index.php3?id=contacts
Thanks
Luqman@amjad9.freeserve.co.uk
[This message has been edited by Luqman (edited July 25, 2000).]
Bookmarks