• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
javascript pass parameter with php value

#1
[eluser]C_Line[/eluser]
<input type="text" id="qtys" value="<?php echo $tot[$i] ;?>">


function sini(kod)
{
window . location = "<?php echo base_url() . "index.php/main/update_link/". kod; ?>";


when redirect, it only print kod
i know something wrong with kod parameter in javascript
thx for replies

#2
[eluser]Nisha S.[/eluser]
Code:
function sini(kod)
{
    [removed] = “<?php echo base_url() . "index.php/main/update_link/"?>" + kod;
    ....
}

#3
[eluser]C_Line[/eluser]
wow, thanks Nisha S !!
i really need this code


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.