|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
html tags in php
Hi ,
I wondered if anyone could properly coded the html tags into this php script. I intend to refresh php page by using 3 images. Please help. <? if (!isset($id) || $id == "1") { $id = "2"; $image = "bg1.jpg"; //background image #1 } elseif ($id == "2") { $id = "3"; $image = "bg2.jpg"; //background image #2 } elseif ($id == "3") { $id = "1"; $image = "bg3.jpg"; //background image #3 } else { $id = "2"; $image = "bg1.jpg"; //background image #1 } echo " <meta http-equiv=refresh content='300; url=index.php?id=$id'> </head>\n <body background=$image>\n"; //$image is the address of your background image defined above ?> Thanks |
|
#2
|
|||
|
|||
|
thats fine, you code should work
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > html tags in php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|