I changed the real domains to domain since this is a public forum. This site is on another server now. Changing the URL after action does not work and I'm pulling my hair out. Thanks for your help in advance.
Code:
<form name="form" method="POST" action="http://example.org/fx/cfx.php" onsubmit='document.form.mstrPage.value = document.location.href;'> <input type="hidden" name="redirect" value="http://example.org/autoreply/index.html"> <input type="hidden" name="mstrPage" /> <input type="hidden" name="subject" value="Contact form." /> <input type="hidden" name="require" value="Name,EMail_Address,comments,phone" /> <input type="hidden" name="security_check" value="<?php echo $enc_code?>" />
Comment