Log in

View Full Version : Non-firefox message



omgDAN!
06-04-2007, 03:54 PM
Does anyone know how to display a message if the visitor is not using Firefox, like on www.thybag.co.uk.

Thanks!

Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks :).

RNelson
06-04-2007, 03:55 PM
Ask Carl yourself?
Does anyone know how to display a message if the visitor is not using Firefox, like on www.thybag.co.uk (http://www.thybag.co.uk).

Thanks!

JK
06-04-2007, 03:58 PM
I Need that too but to show it to FF Useres lol.

Luckyrare
06-04-2007, 04:08 PM
You want something like this...



<?php
$agent = $_SERVER['HTTP_USER_AGENT'];

if (eregi('firefox', $agent){
print("Hello Firefox user...");
}
else{
print("Hello non-Firefox user...");
}
?>

omgDAN!
06-04-2007, 06:51 PM
He isn't replying to PM :(

Want to hide these adverts? Register an account for free!