random html on response.write

mcliano

New Member
hello guys I'm working on an intership where they use ASP to code. Coming from PHP, well I am somewhat confused. I have a form that gets sent with JQuery using $.post().\[code\] $.post("sendmail.asp",{ fname:$("#fName").val(), lname:$('#lName').val(), addy1:$('#addy1').val(), addy2:$('#addy2').val(), city:$('#city').val(), zip:$('#zip').val(), state:$('#state').val(), ephone:$('ephone').val(), dphone:$('dphone').val(), email:$('#email').val(), comm:$('comm').val() },function(e){ alert("Server response: "+e) })\[/code\]I call a script sendmail.asp that uses a class to send mail and after the mail gets sent I do \[code\]response.write("email sent")\[/code\] but I get \[code\]<random HTML that seems to be generated from bootstrap>email sent\[/code\]All I want as response is \[code\]email sent\[/code\].I have no idea what am I doing wrong. Thanks for your help.
 
Back
Top