IanB
10-24-2003, 10:24 AM
Hi,
I have a problem where the user selects a quote button on my site (www.im-press.co.uk), this then brings up a pop up quote screen and displays the product details at the top of the page. I have passed these details in to the pop up using "./quote.htm?subject=Sparta%20Mugs&step=1".
My problem then is that after the user has filled in the rest of the quote form how do I get this information in to the FORM to email to myself?
I have used the following script to get the details on to the quote screen;
SENDING PAGE
<script language='javascript'
type="text/javascript">
function getKeys()
{
var keys = new Object();
var queryString = location.search.substring(1);
var keyPairs = queryString.split("&");
for(var i = 0; i < keyPairs.length; i++)
{
var position = keyPairs[i].indexOf('=');
if (position == -1) continue;
var keyname = keyPairs[i].substring(0, position );
var keyvalue = keyPairs[i].substring(position + 1);
keys[keyname] = unescape(keyvalue);
}
return keys;
}
</script>
RECEIVING PAGE
<td colspan="2"
align="center">You have requested a quote for
<b><span id="interestedItem"></span></b></p>
<SCRIPT>
queryKeys = getKeys();
document.all["interestedItem"].innerHTML = queryKeys["subject"];
</SCRIPT>
but I have been unable to find any way to get the resultant info from the screen in to a FORM to email back to me.
Any help would be appreciated.
Ian
I have a problem where the user selects a quote button on my site (www.im-press.co.uk), this then brings up a pop up quote screen and displays the product details at the top of the page. I have passed these details in to the pop up using "./quote.htm?subject=Sparta%20Mugs&step=1".
My problem then is that after the user has filled in the rest of the quote form how do I get this information in to the FORM to email to myself?
I have used the following script to get the details on to the quote screen;
SENDING PAGE
<script language='javascript'
type="text/javascript">
function getKeys()
{
var keys = new Object();
var queryString = location.search.substring(1);
var keyPairs = queryString.split("&");
for(var i = 0; i < keyPairs.length; i++)
{
var position = keyPairs[i].indexOf('=');
if (position == -1) continue;
var keyname = keyPairs[i].substring(0, position );
var keyvalue = keyPairs[i].substring(position + 1);
keys[keyname] = unescape(keyvalue);
}
return keys;
}
</script>
RECEIVING PAGE
<td colspan="2"
align="center">You have requested a quote for
<b><span id="interestedItem"></span></b></p>
<SCRIPT>
queryKeys = getKeys();
document.all["interestedItem"].innerHTML = queryKeys["subject"];
</SCRIPT>
but I have been unable to find any way to get the resultant info from the screen in to a FORM to email back to me.
Any help would be appreciated.
Ian