I am trying to pull two variables from a url and insert them into the appropriate text fields in a html form.
URL:
orderform.php?shape=Longboard&model=Cutter
I have this javascript, which searches the url string, HOWEVER it pulls the string into one variable. ie - Shape: LongboardCutter - INSTEAD OF: Shape: Longboard - Model: Cutter.
[b]How do I get the javascript to pull the two variables seperately?[\b]Code:<script language="JavaScript"> document.form1.shape.value = location.search.substring(1); </script>
Regards,
Kevin




Bookmarks