I changed my coding style for php and jQuery, but my Registration
$(\"#reg_form_company\").bind(\"submit\", function() {
$.fancybox.showActivity();
$.aj
//This is still showing the cgi output of my script in the browser
$('#myForm').submit(function()){
$('#myForm').preventDefault();
$.ajax({
type : "POST",
cache : false,
url : $('#myForm').attr('action'),
data : $('#myForm').serialize(),
success : function(data) {
$(".printArea").empty().append(data).css('visibility','visible');
};