Add a page to Favorite Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ngolehung84
Forum Newbie
Posts: 6
Joined: Tue Jan 30, 2007 8:45 am

Add a page to Favorite Page

Post by ngolehung84 »

Hi,
How can I add my web page to the web browser's Favorite Page using PHP?
Thanks for your help,
Hung.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

You can't. PHP is a server side languauge. You can force a prompt to do it with JavaScript but I would consider it rude.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Be aware that if people don't add you their favorites on their own, they don't want you there. If you force your way into it, you look like a spammer. In fact, I'm pretty sure that makes you a spammer.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

There are different methods for different browsers, but I would sincerely recommend you take the advice of the others in this thread and offer a link for the user instead of doing it programmatically.
Post Reply