...

View Full Version : add form field value to url??



nikko50
01-05-2011, 04:03 AM
How can I add a form field value to a url. I tried the below but it no work.


href="index2.php?q=4&id=+document.theForm.lists.value+&picklist"

devnull69
01-05-2011, 06:45 AM
First you will have to identify the link ... maybe it has an id attribute? Let's say it's id="mylink"

Then you will have to write a script that will do the trick


<script type="text/javascript">
document.getElementById('mylink').href += '&id=' + document.theForm.lists.value + '&picklist';
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum