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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

issues with passing variable thru url

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
i am passing form variables from one page to another, but can't get rid of the +'s that replace the spaces. i've tried to unescape them, but it isn't working. any suggestions?
 
replace'em
try this:

//str - string from location.search, meaning your data
str=str.replace(/\+/g," ")
 
this is the embarrassing part. how do i implement that code? the first part of my code looks like this:

<SCRIPT LANGUAGE=&quot;javascript&quot;>
var locate = window.location
document.joe.burns.value = locate
var text = document.joe.burns.value
var text= unescape(text)

function delineateDOL(str)

and so on. where would i put the replace function?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top