RE: Banner rotation problem!

From: Date: Sat, 25 Nov 2000 16:23:12 +0000
Subject: RE: Banner rotation problem!
Groups: php.general 
Request: Send a blank email to php-general+get-27154@lists.php.net to get a copy of this message
Instead of <img src="banner.php"> use <?php include"banner.php"; ?> and have banner.ph write out the HTML for the link and image location, as such: <?php print"<a href='http://yahoo.com'>"; print"<img src='yahoo_ad.gif' border=0>"; print"</a>"; ?> Dusty ----------------------------------------------- http://TerribleHost.com 50mg/php/mySQL $10month ----------------------------------------------- Hi list! I trying to do a banner rotation script, it something like this: >banner.php: <? header ("Location: banner.jpg"); /* In this example is just one file, but will have a code to generate always a diferent file for show... */ ?> Ok, in a common page if i put a tag: <img src="banner.php"> it will show the file, but the problem is if i have 3 files with the respective website to go, for example: one.jpg -> http://www.one.com two.jpg -> http://www.two.com three.jpg -> http://www.three.com What i put in <a href=??? How can i make the link to a script for it redirectly to the respective page?? Sorry for bad english and thankz for attention! Samuel Abreu mouse@baydenet.com.br

« previous php.general (#27154) next »