Welcome Guest, Not a member yet? Register   Sign In
convert javascript code to php
#1

[eluser]ranjitbd[/eluser]
//this is the link
Code:
<a href="&lt;?=base_url()?&gt;">Travelmartbd.com</a>

//this is the function

&lt;?php
class Miscellaneous extends Controller {

  function goToTmbd()
  {
      echo “[removed]
                var uri = ‘http://www.travelmartbd.com’;
                [removed].href=uri;
            [removed]”;
  }
}
?&gt;

//i want to write this function without javascript.i want to do it through raw php
within goToTmbd() method.


Messages In This Thread
convert javascript code to php - by El Forum - 08-31-2009, 12:36 PM
convert javascript code to php - by El Forum - 08-31-2009, 12:39 PM
convert javascript code to php - by El Forum - 08-31-2009, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB