Re: Passing MULTIPLE values using URL string



Response.Redirect("bedankttr.htm?Trouwdd=" +
encodeURIComponent(Trouwdd.Value) +
"&Naam=" + encodeURIComponent(Naam.Value));
Is this for sending the data? That works, only distracting not...


Then adjust the code in bedankttr.htm accordingly to extract (and
decode) the two values.
http://www.safalra.com/programming/javascript/get-data/
You can then use window.location.get.Trouwdd and window.location.get.Naam.

I have putted in
<script type="text/javascript">
function initialiseGetData(){
window.location.get = new Object();
if (window.location.search && window.location.search.length > 1){
var getDataArray =
window.location.search.substr(1).replace('+', ' ').split(/[&;]/g);
for (var i = 0; i < getDataArray.length; i++){
var keyValuePair = getDataArray[i].split('=');
window.location.get[unescape(keyValuePair[0])]
= keyValuePair.length == 1
? ''
: unescape(keyValuePair[1]);
}
}
}
</script>

In the <HEAD> of the destination page

and

<!--
newVar=location.search;
document.write(window.location.get.Trouwdd);
//-->

in the <BODY> of it, but doesn't seem to work...

The string looks like
http://www.rhi.nl/contact/bedankttr.htm?Trouwdd=01-02-03&naam=Richard

Richard.
.



Relevant Pages

  • Re: TLV Objekte aus Datei lesen
    ... Weil STRING als OCTET STRING und IA5STRING vorkommen, das aber piepegal ist, schere ich die alle über einen Kamm und komme mit meinem STRING aus. ... Es gibt hier keinen Len-Parameter beim Decode. ... In meinen Daten haben die meisten der Arrays eine ein- oder zweibyteige Angabe der Anzahl der Records am Anfang. ... technischen Daten der Karte sofern sie in der Datei stehn). ...
    (de.comp.lang.delphi.misc)
  • Re: Sending floats over a client-server in Smalltalk
    ... The trick is knowing what to decode them ... Then encode the number in the remaining bytes. ... ByteString>>floatAt: byteIndex ... I could then take a string ...
    (comp.lang.smalltalk)
  • Re: [Full-Disclosure] Phishing scam - Obfuscated url help please
    ... > Let's decode a URL that may end up making IE destroying the PC or ... just to trick some clueless newbie or "typical user" but to outwit ... string variable and writes that to a file). ... output file with a "safe" file viewer. ...
    (Full-Disclosure)
  • Re: Selecting a record froma table where a column might be null
    ... In perl dbi, ... So you use the decode function in your ... string null in decode you can ... Win a $20,000 Career Makeover at Yahoo! ...
    (perl.dbi.users)
  • Re: Ascii Encoding Error with UTF-8 encoder
    ... trying to write out using a UTF-8 encoder? ... Your fundamental problem is that you are trying to decode an 8-bit string ... You decode whatever from an 8-bit string into Unicode. ...
    (comp.lang.python)