---
title: "Bild på sidan utan att skapa fler"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/86947-bild-på-sidan-utan-att-skapa-fler"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "bymarie"
published: "2003-09-25T15:10:27.000Z"
updated: "2003-09-25T16:35:38.000Z"
replies: 2
views: 158
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/86947-bild-på-sidan-utan-att-skapa-fler"
---

# Bild på sidan utan att skapa fler

## #1 — bymarie, 2003-09-25T15:10Z

Varför funkar inte detta?
Det blir bara samma bild som laddas fram hela tiden (start.jpg)

```
<table><tr><td>
<table width="662" bgcolor="white" cellpadding="11" cellspacing="0" border="0">
<tr>
       <td>
<? if ($_GET['bild'] == "01") { ?> 
<img src="photos/01.JPG" width="640" height="480" alt="" border="0">

<? } elseif ($_GET['bild'] == "02") { ?> 
<img src="photos/02.JPG" width="640" height="480" alt="" border="0">

<? } elseif ($_GET['bild'] == "03") { ?> 
<img src="photos/03.JPG" width="640" height="480" alt="" border="0">

<? } elseif ($_GET['bild'] == "04") { ?> 
<img src="photos/04.JPG" width="640" height="480" alt="" border="0">

<? } elseif ($_GET['bild'] == "05") {  ?> 
<img src="photos/05.JPG" width="640" height="480" alt="" border="0">

<?  } else { ?> 
	   <img src="photos/start.JPG" width="640" height="480" alt="" border="0">

<? } ?>

</td>
</tr>
<tr>
       <td height="4" background="bg.bmp"></td>
</tr>
<tr><td><a href="default.php?bild=01">01</a>&nbsp;<a href="default.php?bild=02">02</a></td></tr>
</table>
</td>
</tr>
</table>
```

Permalänk: https://www.webforum.nu/p/86947

## #2 — bymarie, 2003-09-25T16:24Z

Ingen som vet?

Permalänk: https://www.webforum.nu/p/1166401

## #3 — jboy_87, 2003-09-25T16:35Z

är du säker på att $\_GET\['bild'\] får värden?
skriv ut det med

echo $\_GET\['bild'\];

Permalänk: https://www.webforum.nu/p/1166414

---

Tråden på webben: https://www.webforum.nu/amne/php/86947-bild-på-sidan-utan-att-skapa-fler
