Hi-
I am trying, so far without success, to set a form field value to an unescaped URL parameter. Here is the story. A recipient of email from us click an opt-out button and jumps to an opt out page. The URL of that opt-out page has the recipient's email address appended to the URL as a parameter. But the URL has the "@" symbol in the email encoded into "%40", so I have to unescape it to convert the "%40" back to an "@" symbol. So the URL looks like ...company.com/page/emailoptout.htm?emailname%40yahoo.com
In my header I have script to try to set my "emailoptout" form's "email" field value to the unescaped URL parameter:
<script language="javascript" >
function populate()
{
document.optoutform.email.value=unescape(window.location.search.substring(1));
}
</script>
But upon submission the email address is not arriving with the other form fields' data. Can anyone help?
Thank you
Jay
I am trying, so far without success, to set a form field value to an unescaped URL parameter. Here is the story. A recipient of email from us click an opt-out button and jumps to an opt out page. The URL of that opt-out page has the recipient's email address appended to the URL as a parameter. But the URL has the "@" symbol in the email encoded into "%40", so I have to unescape it to convert the "%40" back to an "@" symbol. So the URL looks like ...company.com/page/emailoptout.htm?emailname%40yahoo.com
In my header I have script to try to set my "emailoptout" form's "email" field value to the unescaped URL parameter:
<script language="javascript" >
function populate()
{
document.optoutform.email.value=unescape(window.location.search.substring(1));
}
</script>
But upon submission the email address is not arriving with the other form fields' data. Can anyone help?
Thank you
Jay