Jump to content


Photo

bookmark


  • Please log in to reply
2 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 30 August 2006 - 01:30 PM

<a href="javascript:bookmark('Website address goes here ....','Enter Your Title Here ....')";>Bookmark this Site</A>

i would like this to be written in php and where it says

Website address goes here i want

http://$w

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 30 August 2006 - 01:33 PM

Can I ask why?  Is this a configurable part of the site that you're pulling from a settings file or something?

Either way: <a href="javascript:bookmark('http://<?=$w?>','Enter Your Title Here ....')";>Bookmark this Site</a> 

By the way, you need to end it with </a> like I did.  You were using bbcode.

Info: PHP Manual


#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 30 August 2006 - 01:37 PM

well say its pulled a website from the database

$w = $array['website_url'];

and i want to be able to bookmark this address...

is that the way u said above?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users