Update formfield with varable

//--></script>
<%
source = Request.QueryString("source")
productID = Request.QueryString("productID")

If source <> "" AND productID <> "" Then

If source = "inventory" Then

themessage = "I am interested in Ref#: " & [productID] & " please contact me regarding this item"

Else


themessage = "I am in search of UEDCode: " & [productID] & " , please contact me regarding this item"

End If

End If

'response.write("message=" & themessage)
%>

		<form method="POST" action="../formmail.asp" onSubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
		<!--onsubmit="return FrontPage_Form1_Validator(this)" -->
	      <!--input type="hidden" name="_envars" value="REMOTE_HOST,HTTP_USER_AGENT-->
	      <!--nput type="hidden" name="print_blank_fields" value="1"-->
	      '<input type="hidden" name="_recipients" value="strongmachinery@gmail.com">
	      <!--input type="hidden" name="="_redirect" value="http://www.strongmachinery.com/confirm.html"-->
	      <input type="hidden" name="_subject" value="Web Site Contact">
          <input type="hidden" name="wanted" id ="wanted" value="none">

i want to put the value of themessage in formfield wanted

Hi emgreene welcome to the forum

You posted this topic in the JavaScript category, but the code example you posted doesn’t look like any JavaScript I’ve ever seen. What language is it / where did you get it from?

From a working website I just assumed it was java with because of the script declaration

Thanks, seeing “formmail.asp” and “FrontPage” I would have guessed ASP not JSP

Have you tried something like

value="<%= productId %>"

thank you very much i been trying to get this to work for a while

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.