Retrieving Parameters

[Total: 0    Average: 0/5]

This example shows how to retrieve parameters and put them into a form select list.

Body Code:

var _d = document.location.toString();
var _e = _d.split("?")[1];
var _parms = new Array();
var _valus = new Array();
// parameters must have a &!
var _f = _e.split("&");
for(var i=0;i<_f.length;i++) {

<FORM NAME="formName2"> 
<SELECT NAME="selectName2"> 

<SCRIPT LANGUAGE="JavaScript"><!-- 
for (var i=0;i<_valus.length;i++) {
  var _s=i==0?" SELECTED ":"";
    document.write('<OPTION VALUE="x" '+_s+'>' + _valus[i]); 

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *