Problem using FP Email Form

  • Thread starter Thread starter skc
  • Start date Start date
S

skc

I want to pass a value from an ASP page (.asp) to a .htm
page without using <% %> VB code.

Effectively this will be a hidden field that gets emailed
within a FP email form.

How can I do this please?

skc
 
From my recent experience, ASP and FP form handlers don't work together. The
page with the form has to stay an Htm or HTML extension.

I'm not sure if I have read your post right. But if you are trying to get a
value from an ASP page to be passed into the form which is on a htm page?

Jm
www.jmconsultingllc.com
 
Pass the value in the url and use Javascript to parse the querystring and place the value into the hidden form field.

eg. myform.htm?FirstName=Stephen
<script>
function getQueryString(e) {
var qe;
var qs = document.location.search.substring(1);
qs = qs.split("&");
for (i=0; i < qs.length-1; i++) {
qe = qs.split("=");
if (qe[0] == e) {
return qe[1];
}
}
return '';
}
</script>
<body onload="document.FrontPage_Form1.FirstName.value=getQueryString('FirstName');">
<input type="hidden" name="FirstName">
 
Back
Top