Log In · Register

 
php coding help only 6 lines of code
rubicon
post 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!! whistling.gif
 
 
Start new topic
Replies
*mipadi*
post 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" />
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: