Hi Jason,
I've a quirky add-on question ... I'm trying to do the same only with the Security Question / Answer rather then cachup
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST")) {
@session_start();
$removeArray = array();
$removeArray[] = "Security_Answer";
$removeArray[] = "captcha_x"; // I've tried removing this, but still get the numbers
$removeArray[] = "captcha_y"; // as above
$_SESSION['mailBody'] = "";
foreach($_POST as $pkey => $pval ){
if(!in_array($pkey,$removeArray)) {
$_SESSION['mailBody'] .= "".str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))."<br />";
}
}
}
?>
The security answer correctly removes itself as does the field arrays but in the db I get an additional eg ... <br />33<br />4<br /> ... at the bottom of the db entry.
I've tested it 4 or 5 times and the 33's and 4's range from 33/35/38/39 or 4/11/12. There doesn't seem to a pattern to the numbers. The db entries numbers are 14-20 so it's not the emailID numbers, I've also compared it to the mins / seconds / date etc but again no pattern.
I'm guessing I need to add a couple of extra removes ... eg...
... $removeArray[] = "global_form_field_names";
It's only a basic form.
this is a typical full db entry (I've replace the form content inputs with the db field names)
contact name field<br />
email field<br />
phone number field<br />
company name field<br />
enquiry details field (followed by extra numbers)<br /><br />33<br />12<br />
It's not the most crucial of tidying ups but it would be nice to get id of the extra numbers.
Thanks
nathan