Passing data from HTML page to PHP script -
so have php script being called html link. script set such needs accept non-user input page (static data exists). line calls script looks this.
<div class="name"><a href="some/script">text</a></div> i need pass values in "name" , text script, value earlier line.
what best way accomplish this? of research points using forms , get/post, can see, there no place user input of data. there way using hidden forms or ajax?
maybe code
<div class="name"><a id="link" href="some/script.php">text</a></div> <input id="name" onblur="modify(this.value)"> <script type="text/javascript"> var link = document.getelementbyid("link").href; var modify = function(name){ var = document.getelementbyid("link"); a.href = link + "?name="+name; } </script>
Comments
Post a Comment