\n"; if ( isset( $_POST['submit'] ) ) { $error = ''; if ( isset($_POST['r_firstname']) ) $r_firstname = escape_data( $_POST['r_firstname'] ); if ( isset($_POST['r_lastname']) ) $r_lastname = escape_data( $_POST['r_lastname'] ); if ( isset($_POST['r_city']) ) $r_city = escape_data( $_POST['r_city'] ); if ( isset($_POST['r_state']) ) $r_state = escape_data( $_POST['r_state'] ); if ( isset($_POST['r_zipcode']) ) $r_zipcode = escape_data( $_POST['r_zipcode']); if ( isset($_POST['r_email']) ) $r_email = escape_data( $_POST['r_email'] ); if ( isset($_POST['r_phone']) ) $r_phone = escape_data( $_POST['r_phone'] ); if ( isset($_POST['r_profession']) ) $r_profession = escape_data( $_POST['r_profession'] ); if ( empty ($_POST['r_child'] ) ) { $r_child = escape_data( 'N' ); } else { $r_child = escape_data( $_POST['r_child'] ); } if ( empty ($_POST['r_kneel_line'] ) ) { $r_kneel_line = escape_data( 'N' ); } else { $r_kneel_line = escape_data( $_POST['r_kneel_line'] ); } if ( empty ($_POST['r_kneel_darshan'] ) ) { $r_kneel_darshan = escape_data( 'N' ); } else { $r_kneel_darshan = escape_data( $_POST['r_kneel_darshan'] ); } if ( empty ($_POST['r_volunteer'] ) ) { $r_volunteer = escape_data( 'N' ); } else { $r_volunteer = escape_data( $_POST['r_volunteer'] ); } if ( empty ($_POST['r_ashram'] ) ) { $r_ashram = escape_data( 'N' ); } else { $r_ashram = escape_data( $_POST['r_ashram'] ); } if ( isset($_POST['r_comment']) ) $r_comment = escape_data( $_POST['r_comment'] ); #------- Make sure all required fields are filled in if ( !$r_firstname || !$r_lastname ) { $error .= "
\n"; } if ( !$r_email ) { $error .= "\n"; } #----If everything is ok, send the email! if ( !$error ) { #---Set the Text of the email $headers = "From: $r_email"; $body = "First Name: $r_firstname \nLast Name: $r_lastname\n". "City: $r_city\nState: $r_state\nZipcode: $r_zipcode\nEmail: $r_email\n". "Phone: $r_phone\nProfession: $r_profession\n\nUnder 18: $r_child\n". "Unable to kneel in line: $r_kneel_line\nUnable to kneel for Darshan: $r_kneel_darshan\nVolunteer: $r_volunteer\nAshram: $r_ashram\n". "Comment: $r_comment\n\n"; if (mail($to, $subject, $body, $headers)) { echo(""); } else { echo(""); } } else { # if something went wrong, print an error message # and reshow the form with some fields filled in print $error; print "\n"; } } #-- end if submit #----Need escape data function function escape_data ($data, $txt=false) { global $dbc; if ( get_magic_quotes_gpc() ) { $data = stripslashes($data); } #if ( !is_numeric($data) ) { #$data = "'" . mysql_real_escape_string ($data, $dbc) . "'"; #} if ( $txt && is_numeric($data) ) { $data = "'" . $data . "'"; } return $data; } # function escape_data ?>|
"A realized man is like a child in the womb of the Mother, knowing he is sustained at every moment by the grace and Light of the Divine Mother." |
Personal Information
|
![]() |