Fade in form confirmation message error when using https

hope someone can help, I have a contact form embedded into a script which upon submit calls a fade in confirmation text for a set period of time then resets the form, it works fine using http but upon using https it opens the confirmation message as a new page displaying text only.

contact form:
[php]$rand_int1 = substr(mt_rand(),0,2);
$rand_int2 = substr(mt_rand(),0,1);
$captcha_answer = $rand_int1 + $rand_int2;

echo “<div style=“float:left;margin-left:5px;width:73%;”>”;
echo “<div class=“pmx-view-title”><a name=“request-information”>Request Information”;
echo “<div class=“pmx-view-small-text”>For more information about this property, please complete the following details. required";
echo “<div class=“pmx-view-address”>”;
echo “<form action=“pmx-inc-request-information.php” method=“post” id=“more-info-form”>”;
echo “<input type=“hidden” name=“id” value=”".$row[“id”]."" />";
echo “<input type=“hidden” name=“captcha_answer” value=”".$captcha_answer."" />";
echo “<input type=“text” name=“a_name” placeholder=”
your name” style=“width:200px;padding:3px;” />  ";

echo "<input type=\"text\" name=\"a_email\" placeholder=\"* your email\" style=\"width:385px;padding:3px;\" /><br />";

echo "<input type=\"text\" name=\"a_telephone\" placeholder=\"* your telephone\" style=\"width:200px;padding:3px;margin-top:6px;\" />&nbsp;&nbsp;";
echo "<input type=\"text\" name=\"a_house_number\" placeholder=\"house number / name\" style=\"width:150px;padding:3px;margin-top:6px;\" />&nbsp;&nbsp;";

echo "<input type=\"text\" name=\"a_postcode\" placeholder=\"postcode\" style=\"width:220px;padding:3px;\" /><br />";
echo "<textarea name=\"a_message\" style=\"width:602px;height:50px;padding:3px;margin-top:6px;\" placeholder=\"please enter a message\"></textarea>";
echo "<div id=\"loader\">";
echo "<div style=\"margin-right:45px;\" align=\"right\">What is ".$rand_int1." + ".$rand_int2."? <input type=\"text\" name=\"captcha\" style=\"width:40px;padding:3px;\"> ";
echo "<input type=\"submit\" value=\"Send Information Request\" class=\"button-1\" /></div></div>";
echo "</form>";
echo "</div>";
echo "</div>";

echo “<div class=“clear”>”;[/php]

js file:

$(function(){ $('#more-info-form').submit(function(e){ e.preventDefault(); var form = $(this); var post_url = form.attr('action'); var post_data = form.serialize(); $('#loader', form).html('<img src="pmx-includes/loading.gif" /> Please Wait...'); $.ajax({ type: 'POST', url: post_url, data: post_data, success: function(msg) { $(form).fadeOut(500, function(){form.html(msg).fadeIn();}); } }); }); });

Thanks in advance :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service