In WebToLeadCapture.php look for this code:
PHP Code:
foreach($_POST as $param => $value) {
if($param != 'redirect_url' ||$param != 'submit') {
echo '<input type="hidden" name="'.$param.'" value="'.$value.'">';
}
}
This is where it gets the fields passed to it and redirects it to process. You should be able to change the value here like:
PHP Code:
foreach($_POST as $param => $value) {
if($param != 'redirect_url' ||$param != 'submit') {
if($param == 'do_not_call') {
$value = !$value; //sets value to opposite (1 to 0 or 0 to 1)
}
echo '<input type="hidden" name="'.$param.'" value="'.$value.'">';
}
}
Change as needed for the appropriate field.
Bookmarks