In the database I have:
tbl_mlm_sub
tbl_mlm_users
The "tbl_mlm_users" should be the list I'm using. This is the one I've uploaded the current list I have.
Both of them having "fld_list" = "CX_mailing_all" .
"Posted: Fri Nov 21, 2008 3:56 pm Post subject:
In fact the field would be 'fld_opt3'. "
Where do I define the name?
I still don't understand the nomination to put the data of "country" to the database.
Here's the code I have now:
<?php
if ( isset( $_REQUEST['cmd'] ) && !empty( $_REQUEST['cmd'] ) ) { $cmd = $_REQUEST['cmd']; }
if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = $_REQUEST['email']; }
if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; }
if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; }
if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; }
if ( isset( $_REQUEST['city'] ) && !empty( $_REQUEST['city'] ) ) { $city = $_REQUEST['city']; }
if ( isset( $_REQUEST['country'] ) && !empty( $_REQUEST['country'] ) ) { $country = $_REQUEST['country']; }
if ( isset( $submit ) ) {
$errors = array();
if ( $email == "" ) { $errors[] = "Enter your email address in the email address text box"; $wrong['email'] = TRUE; }
if ( $email !== "" && ( stristr( $email, "." ) == FALSE || stristr( $email, "@" ) == FALSE ) ) { $errors[] = "The e-mail address you have entered is not valid"; $wrong['email'] = TRUE; }
if ( $firstname == "" ) { $errors[] = "Enter your fist name in the fist name text box"; $wrong['firstname'] = TRUE; }
if ( $lastname == "" ) { $errors[] = "Enter your last name in the last name text box"; $wrong['lastname'] = TRUE; }
if ( count( $errors ) == 0 ) {
$url = "../mlm.php";
$url .= "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname&opt2=$city&opt3=$country";
header("Location: $url");
}
}
?>