/    Sign up×
Community /Pin to ProfileBookmark

Cfm Html Java

I GOT THIS CODE FOR MY SHORT FORM AND I WANT TO PUT A JAVA CODE IN A CFM FORM AND WAS WONDERING WHERE I HAVE TO PUT THE JAVA CODE AND IF THIS CODE CORRECT,,,,

<FORM ACTION=”interbd.cfm” METHOD=”POST” style=”margin-bottom: 0″>
<p> </p>
<strong>
<input type=”hidden” name=”recipient” value=”[email protected]”>
<input type=”hidden” name=”subject” value=”partners Website Response Form”>
<input type=”hidden” name=”location” value=”http://www..com/.html”>

</strong>

<tr bgcolor=”#FFFFFF”>
<td colspan=”2″> <div align=”right”><span style=”background-color: #FFFFFF”><font color=”#333366″ size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”><strong>First
Name </strong></font></span></div></td>
<td> <div align=”left”><strong><font color=”#FFFFFF” size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”>
<input name=”FirstName” type=”text” id=”FirstName” size=”35″ maxlength=”100″>

</font></strong></div></td>
</tr>
<tr bgcolor=”#FFFFFF”>
<td colspan=”2″> <div align=”right”><span style=”background-color: #FFFFFF”><font color=”#333366″ size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”><strong>Last
Name </strong></font></span></div></td>
<td> <div align=”left”><strong><font color=”#FFFFFF” size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”>
<input name=”LastName” type=”text” id=”LastName” size=”35″ maxlength=”100″>

</font></strong></div></td>
</tr>

<tr bgcolor=”#FFFFFF”>
<td colspan=”2″> <div align=”right”><span style=”background-color: #FFFFFF”><font color=”#333366″ size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”><strong>Email</strong></font></span></div></td>
<td> <div align=”left”><strong><font color=”#FFFFFF” size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”>
<input name=”Email” type=”text” id=”Email” size=”35″ maxlength=”100″>

</font></strong></div></td>
</tr>

<tr bgcolor=”#FFFFFF”>
<td align=”center” valign=”top”><font color=”#400080″ size=”+4″ face=”Agency FB”>
<input type=”reset” name=”Submit2″ value=”Reset Form”>

</font></td>

<td align=”center” valign=”top”><font color=”#400080″ size=”+4″ face=”Agency FB”>
<input name=”submit” type=”submit” id=”submit2″ value=”Submit to MS”>

</font></td>
</tr>
<tr bgcolor=”#FFFFFF”>
<td width=”134″ height=”85″ align=”center” valign=”top”><span style=”background-color: #FFFFFF”><font color=”#333366″ size=”2″ face=”Verdana, Arial, Helvetica, sans-serif”>

</font></span></td>
<td width=”141″ align=”center” valign=”top”><span style=”background-color: #FFFFFF”><font color=”#333366″ size=”+4″ face=”Agency FB”>

</font></span></td>
</tr>
</form>
</table>
<p style=”margin-bottom: 0;”> </p>
</div></td>
</tr>
</table>

OK SO THIS IS THE FORM THAT GETS SENT TO ME THRU COLD FUSION . IS THIS AND WHERE DO I INPUT THIS(THE CODE FROM JAVA FOR REQUIRED FIELD….

<script>

/*

*/

function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,8)==”required”){
if (((tempobj.type==”text”||tempobj.type==”textarea”)&&tempobj.value==”)||(tempobj.type.toString().charAt(0)==”s”&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert(“One or more of the required elements are not completed. Please complete them, then submit again!”)
return false
}
else
return true
}
</script>
<!–webbot
bot=”HTMLMarkup” endspan –></font></p>

CAN SOMEONE HELP APPRECIATE IT THANKS

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @CHENZ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...