Both Java script and FoxWeb code are using <% %> tags. Can we use them mixedly? Can I put JScript inside my Foxweb codes?
(I just found a piece of JMail that I wish to use.) Thank you. e.g.
<%
IF Request.FormCount("email") <> 0
Select password from user ;
where Upper(email)=UPPER(Request.Form("email"));
INTO CURSOR results
if _tally>0
cPWD=allt(Results.password)
**---JScript begin Dim objJMail
Set objJMail = Server.CreatObject("JMail.SMSTPMail")
objJMail.ServerAddress="smtp.maintech-corp.com:25"
objJMail.Sender = "
abc@yahoo.com"
objJMail.AddRecipient "
xyz@hotmail.com"
objJMail.Subject = "Password"
objJMail.Body = "Hello. This is your password:" & cPWD
&& Not sure if "&" is OK here
objJMail.Priority = 3
objJMail.Execute
Set objJMail = Nothing
**--JScript End
Endif
Endif
%>