DBookatay Posted February 19, 2009 Share Posted February 19, 2009 I found a JS $_GET script that extracts information from the url, like php does, but I need help editing it. The first script is: function jsGet(type){ if(location.href.match(type)){ return location.href.split(type+'=')[1].split('&')[0]; }} document.write(jsGet('vin')); In a .html page if the url is www.test.html?vin=354 the page displays "354" fine. I am learning to create pdfs with Acrobat 9 and know that it supports javascript,but uses event.value = something; How can I edit the first script to display the "354" in a chosen field? Did I explain myself properly? Link to comment https://forums.phpfreaks.com/topic/145867-editing-a-script-to-use-with-acrobat/ Share on other sites More sharing options...
DBookatay Posted February 20, 2009 Author Share Posted February 20, 2009 Anyone? Link to comment https://forums.phpfreaks.com/topic/145867-editing-a-script-to-use-with-acrobat/#findComment-767087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.