php coding help only 6 lines of code |
php coding help only 6 lines of code |
Oct 10 2006, 06:38 PM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 56 Joined: Aug 2006 Member No: 454,246 |
I have a layout previewer that i am working on but i am having trouble with getting the actual layouts to work in the code...i dont know where to put the links for my layouts inside of the code so this is why im stuck
line 2 is what i thought i needed to do but it didnt work <option value="">Select style</option> <option value="<?=$PHP_SELF."?myspace/raygun.css"?>">Nike Dunk Raygun</option> <option value="<?=$PHP_SELF."?c=2"?>">Layout number two</option> <option value="<?=$PHP_SELF."?c=3"?>">Layout number three</option> <option value="<?=$PHP_SELF."?c=4"?>">Layout number four</option> </select></form> thanks for any help!! |
|
|
|
![]() |
| *mipadi* |
Oct 11 2006, 03:53 PM
Post
#2
|
|
Guest |
Hm, well, assuming the name of the file is stored in "c" (as in, the address of the script is something like http://www.mysite.com/index.php?c=xxx, where "xxx" is the name of one of your styles), then you could put this tag in the <head> of your document:
CODE <link rel="stylesheet" type="text/css" href="<?php echo $_GET['c']; ?>.css" />
|
|
|
|
rubicon php coding help only 6 lines of code Oct 10 2006, 06:38 PM
mipadi QUOTE(rubicon @ Oct 10 2006, 7:38 PM) I h... Oct 11 2006, 11:06 AM
rubicon the info links to css files that i have..the probl... Oct 11 2006, 11:27 AM
rubicon sorry i was i had more info about this code but i ... Oct 11 2006, 04:23 PM
mipadi What exactly are you trying to do? Are you trying ... Oct 11 2006, 06:36 PM
rubicon yes that is exactly what i am trying to do and her... Oct 11 2006, 07:02 PM
mipadi Could be wrong, but try changing this:
CODE<fo... Oct 12 2006, 10:17 AM![]() ![]() |