CodeIgniter Forums
javascript pass parameter with php value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: javascript pass parameter with php value (/thread-52937.html)



javascript pass parameter with php value - El Forum - 07-03-2012

[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


javascript pass parameter with php value - El Forum - 07-03-2012

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



javascript pass parameter with php value - El Forum - 07-03-2012

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