Forum Moderators: coopster

Message Too Old, No Replies

Simple Image Display - ASP to PHP

         

tenyears

2:57 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



Is it possible to do something like this in php? To have a template page that all my images use, instead of creating a seperate page for each image.


[b]Link:[/b]
<a href="showimg.asp?img=/foto/nina01.gif">

[b]Template Page:[/b]
<%
Dim sIMGPath, sTemplateTop, sTemplateBottom

sTemplateTop = "../SSI/nbTop.asp"

sTemplateBottom = "SSI/nbBottom.asp"

sIMGPath = Request.Querystring("img")

%>

<!--#include virtual="SSI/nbTop.asp"-->
<p align="center">
<img src="<%=sIMGPath%>" border="1" align="center">
</p>
<!--#include virtual="SSI/nbBottom.asp"-->

With what little knowledge I have of php I've given it a bit of a go, but really, I haven't a clue. Any help would be nice, thanks.

dcrombie

3:49 pm on Apr 28, 2005 (gmt 0)



<img src="<?= $_GET["img"]; ?>">

;)

tenyears

5:03 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



:D

Thank You