--- Jer <[EMAIL PROTECTED]> wrote:
> I want to change graphics depending on the URL. So, if the user is at
> http://
> www.domain1.com/page1, it will show page1graphic.jpg. If the user is at
> http://
> www.domain2.com/page2, it will show page2graphic.jpg.
>
> I tried using Location: "xx", but that didn't work.
>
> How would I do this?
Try something like...
if ( $PHP_SELF == "/page1" )
{ echo "<img src=\"page1graphic.jpg" alt=\"Image description\">; }
if ( $PHP_SELF == "/page2" )
{ echo "<img src=\"page2graphic.jpg" alt=\"Image description\">; }
If you drop an echo $PHP_SELF; line into the page (just to test it),
you'll be able to see exactly how you need to word the comparison for the
if's.
Michael Roush
[EMAIL PROTECTED]
"The power of the Web is in its universality. Access by everyone regardless of
disability is an essential aspect."
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/