badgoat wrote:
<?php
$crf=$HTTP_POST_VARS['crf'];
$crfaddr=$HTTP_POST_VARS['crfaddr'];
$city=$HTTP_POST_VARS['city'];
$state=$HTTP_POST_VARS['state'];
$zip=$HTTP_POST_VARS['zip'];
$crfphone=$HTTP_POST_VARS['crfphone'];
$website=$HTTP_POST_VARS['website'];
$scheduler=$HTTP_POST_VARS['scheduler'];
$schedphone=$HTTP_POST_VARS['schedphone'];
$schedcellphone=$HTTP_POST_VARS['schedcellphone'];
$schedemail=$HTTP_POST_VARS['schedemail'];
?>
Undefined indexes in this case means that one or more of the values were not entered on the form. To get rid of the undefined index, you have to check to make sure the values were set: if(isset($POST['crf']) { $crf = $POST['crf'];}
Also, you may shorten those to:
<?php
$crf = $_POST['crf'];
$crfaddr = $_POST['crfaddr'];
$city = $_POST['city'];
// etc...
?>