Problem using FP Email Form

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
 
J

Jm

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
 
S

Stephen Travis

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">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top