View Full Version : Set Form Value to Unescaped URL parameter

12-15-2005, 09:33 PM

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()

But upon submission the email address is not arriving with the other form fields' data. Can anyone help?

Thank you

Jay :thumbsup: