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

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.


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';

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum