danwguy wrote:don't forget to check your spam folder, I had a lot of forms that I sent off that got filtered into the spam folder for one reason or another. The code should work, it's written properly. Did you make the <div> space on your page for the second page to open into? did you hide it properly?
EDIT: Are you calling your function correctly in your html?
Ok after all this work over the weekend, my other forms are submitting properly except this one... but I'm able to access each people and I get no submitting errors so I gotta be missing something small.
Code: Select all
<script language="javascript">
<!--
function OnButton1()
{
document.Autho.action = "contract.php" // First target
document.Autho.target = "iframe1"; // Open in a iframe
document.Autho.submit(); // Submit the page
return true;
}
-->
</script>
Code: Select all
<p style: align="center"><form name=Autho form action="mailtest.php" method="POST">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
<div align="center">
<p class="style1">Name</p>
<input type="text" name="name">
<p class="style1">Address</p>
<input type="text" name="address">
<p class="style1">Email</p>
<input type="text" name="email">
<p class="style1">Phone</p>
<input type="text" name="phone">
<p class="style1">Field</p>
<input type="text" name="field">
<p class="style1">Field Address</p>
<input type="text" name="fielda">
<br />
<br />
<a href="authoforms.php" target="_blank" style="color:#ffcb00" vlink="#ffcb00">Click here to view Assignment Agreement and Contract Agreement</a>
<p class="style1"><input type='checkbox' name='chk' value='I Have read and Agree to the terms.'> I have read and agree to the Assignment and Contract Agreement <br></p>
<p class="style1">Print Name</p>
<input type="text" name="pname">
<p class="style1">Title</p>
<input type="text" name="title">
<p class="style1">I hear by agree that the information I have provided is true, accurate and the information I am submitting is <br />
not fraudulent. Please click the agree button that you adhere to Commercial Recovery Authority Inc.'s terms:</p>
<select name="agree" size="1">
<option value="Agree">Agree</option>
<option value="Disagree">Disagree</option>
</select>
<br />
<br />
<p class="style1">Employee ID:</p>
<input type="text" name="employee">
<br />
<input type="submit" value="Send"><input type="reset" value="Clear">
</div>
</form>
</p>
<div style="visibility:hidden">
<IFRAME NAME="iframe1" WIDTH="40" HEIGHT="40"></IFRAME>
</div>
Now for the mailtest.php form
Code: Select all
<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$name = $_POST['name'];
$address = $_POST['address'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$debtor = $_POST['field'];
$debtora = $_POST['fielda'];
$value = $_POST['chk'];
$pname = $_POST['pname'];
$title = $_POST['title'];
$agree = $_POST['agree'];
$employee = $_POST['employee'];
$formcontent=" From: $name \n Address: $address \n Email: $email \n Phone: $phone \n Field: $field \n Field Address: $fielda \n 'Client' has read Assignment and Contract Agreement: $value \n Print Name: $pname \n Title: $title \n I hear by agree that the information I have provided is true, accurate and the information I am submitting is not fraudulent. Please click the agree button that you adhere to Commercial Recovery Authority Inc.'s terms: $agree \n \n Employee ID: $employee \n IP: $ip";
$recipient = "mail@crapower.com";
$subject = "Online Authorization Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!" . " -" . "<a href='index.php' style='text-decoration:none;color:#ffcb00;'> Return Home</a>";
$ip = $_POST['visitoraddress']
?>
Code: Select all
<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$pname = $_POST['pname'];
$title = $_POST['title'];
$formcontent=" contract info
Print Name: $pname
Title: $title;
$recipient = "mail@crapower.com";
$subject = "Online Authorization Form 33.3%";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
$ip = $_POST['visitoraddress']
?>
For some reason, neither form is getting sent... so I'm guessing it has to do with the html form?