techker Posted August 4, 2014 Share Posted August 4, 2014 hey guys i need to refresh on blur to get to post the upc code inserted in the textarea for product search.. i got the but i can't find the way to post the item <script> function reload() { window.location.assign("http://store.radioauto.ca/POS/auto.php?Item=upc code here") } </script> <input type="text" id="upc" name="upc" onblur="reload()" value="<?=$_GET['item']?>"/> Quote Link to comment https://forums.phpfreaks.com/topic/290270-value-from-textarea/ Share on other sites More sharing options...
Zane Posted August 5, 2014 Share Posted August 5, 2014 Could you be any less specific? And surely you've got more code than that. Quote Link to comment https://forums.phpfreaks.com/topic/290270-value-from-textarea/#findComment-1486821 Share on other sites More sharing options...
techker Posted August 5, 2014 Author Share Posted August 5, 2014 well it is just part of the form. but it is just that part i need to display.. i have a field upc code,so i won't to onblur refresh but show the upc from the text field in the url so my query can grab it and search the database for the corresponding product mylink.com?upc= Quote Link to comment https://forums.phpfreaks.com/topic/290270-value-from-textarea/#findComment-1486823 Share on other sites More sharing options...
cyberRobot Posted August 5, 2014 Share Posted August 5, 2014 You could do something like this: window.location.assign("http://store.radioauto.ca/POS/auto.php?Item=" + document.getElementById('upc').value); Quote Link to comment https://forums.phpfreaks.com/topic/290270-value-from-textarea/#findComment-1486860 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.