on-internet
← Community

Redirect user to another PHP page with parameters [duplicate]

Stack Overflow ·

I'm trying to redirect user to another PHP page to edit a SQL table, when a button is clicked. This is the code: $("#modificaDipinto").click(function(){ var tipo = <?php echo json_encode($tipo_opera); ?>; var codice = <?php echo json_encode($cod); ?>; var titolo = <?php echo json_encode($titolo); ?>; var annoCreaz = <?php echo json_encode($annoCreaz); ?>; var museo = <?php echo json_encode($museo); ?>; var dimensioni = <?php echo json_encode($dim); ?>; var tipoPittura = <?php echo json_encode($tipo_pittura); ?>; window.location.href = "modifica.php?codice="+codice+"&tipo="+tipo+"&titolo="+tito

Comments

Sign in or sign up to comment and upvote.

No comments yet.