Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB