Good evening!
Function:
function myFunction() { var name = $("#name").val(); var cost = $("#cost").val(); var tmp = "http://site.com/go/<?php echo $this->user->info->username ?>/?transaction=" + name + "&item=" + cost; var result = encodeURI(tmp); $("#tar1").html(result); $("#par1").html(result); console.log(result); } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> How to insert the result of execution in a href?
Thanks for any help!