CodeIgniter Forums

Full Version: javascript pass parameter with php value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

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