Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables in URL 1

Status
Not open for further replies.

page.html?var1=home&var2=user



var tempLocation = window.location.href
tempArray = new Array();
tempParameter = new Array();
tempArray = tempLocation.split("page.html?")

//tempArray[1] = your form data


tempParameter = tempArray[1].split("=")


split into value pairs

while(i<=tempParameter.count){
tempName = tempParameter
tempValue = tempParameter[i+1]
i=i+2
}









 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top