Problems editing the mulitple subscribe page - Please look

julienjp

New Member
Here is a copy of the code from the page I am editing. I am trying to add Birthdate and City as option tags. I want to be able to sort my lists by city and be able to search recipients by birthdate

Code:
<?php
include( '../lm_strings.php' );
include( '../lm_prefs.php' );
include( '../lm_settings.php' );
include( '../lm_queries.php' );
include( '../lm_functions.php' );

//--SETTINGS--------------------------------------------------------------------

$lm_path = "../lm.php"; // The path of the MLM script

//--DEBUGING--------------------------------------------------------------------

$mlm_debug = False;

if ( $mlm_debug ) {
	error_reporting(E_ALL); 
	ini_set('display_errors','on');
} else {
	error_reporting(E_ALL ^ E_NOTICE); 
	ini_set('display_errors','off');
}

//--PARAMATER CHECKING----------------------------------------------------------

if ( isset( $_REQUEST['cmd'] ) && !empty( $_REQUEST['cmd'] ) ) { $cmd = $_REQUEST['cmd']; }
if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = $_REQUEST['email']; }
if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; }
if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; }

for ( $j = 1; $j <= $listcount; $j++ ) {
	$listid = "list$j";	
	if ( isset( $_REQUEST["$listid"] ) && !empty( $_REQUEST["$listid"] ) ) { 
		if ( $list != "" ) { $list .= ";"; }
		$list .= $_REQUEST["$listid"];
	}
}

//-- INTERNAL PARAMETERS -------------------------------------------------------

$script_file = $_SERVER["SCRIPT_NAME"];
$script_path = Explode( '/', $script_file );
$script_name = $script_path[ count( $script_path ) - 1 ];

//-- PARAMETER CHECKER & ERROR HANDING -----------------------------------------

if ( isset( $_REQUEST['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 first name in the first name text box"; $wrong['firstname'] = TRUE; }
	if ( $lastname == "" ) { $errors[] = "Enter your last name in the last name text box"; $wrong['lastname'] = TRUE; }
	
	if ( $list == "" ) { $errors[] = "You have to select a list"; $wrong['list'] = TRUE; }
	
	if ( count( $errors ) == 0 ) {
$url = $lm_path . "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname&opt1=$opt1&opt2=$opt2";
header("Location: $url");
}
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="generator" content="Adobe GoLive" />
		<title>Mailing List Subscription</title>
		<style type=text/css>
			A:link  { color: #396D84; font-weight: normal; text-decoration: underline }
			A {
				CURSOR: hand; TEXT-DECORATION: none
			}
			A:visited  { color: #396D84; font-weight: normal; text-decoration: underline }
			A:active  { color: #86B82D; text-decoration: underline }
			A:hover   { color: #86B82D; font-weight: normal; text-decoration: underline }
			
			input[type="text"], input[type="password"], textarea {font-weight: bold;}
			select:focus, textarea:focus, input:focus {background-color: #ffffee;}
		</style>
	</head>

	<body>
		<div align="center">
			<br />
			<br />
			<table width="500" border="0" cellspacing="2" cellpadding="0">
				<tr bgcolor="#0059a5" height="22">
					<td height="22">
						<div align="center">
							<font color="white" face="Verdana, Arial, Helvetica, sans-serif"><b>Mailing List Subscription</b></font></div>
					</td>
				</tr>
				<tr bgcolor="white" height="16">
					<td height="16"></td>
				</tr>
				<tr>
					<td>
						<div align="center">
							<form id="FormName" action="<?php echo $script_name; ?>" method="get" name="FormName">
								<table width="100%" border="0" cellspacing="2" cellpadding="0">
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your E-mail Address</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="email" size="30" <?php echo " value=\"$email\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your First Name</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="firstname" size="30" <?php echo " value=\"$firstname\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your Last Name</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="lastname" size="30" <?php echo " value=\"$lastname\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
                                    <tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your Home City</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="Opt1" size="30" <?php echo " value=\"$Opt1\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
                                    <tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your Birthdate</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="Opt2" size="30" <?php echo " value=\"$Opt2\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td valign="top" width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Mailing Lists</b></font></div>
										</td>
										<td width="15" height="24"></td>
											<td height="24">
												<?php
												$pwd = $admin_password;
												$ext_list = ".txt";
												$id = 0;
												$lists = explode( "\n", ShowLists() );
												usort( $lists, "SortByName" );									
												foreach ( $lists as $mylist ) {
													list( $name, $count, $date ) = explode( "\t", $mylist );
													if ( trim( $name <> "" ) ) {
														//echo "<option";
														//if ( $name == $list ) { echo " selected=\"selected\""; }
														//echo " value=\"" . $name . ".php\">" . $name . "</option>\n";
														
														$id++;
														$listid = "list$id";
														//echo "<input type=\"checkbox\" name=\"$listid\" value=\"$name\" ";
														//if ( $$listid == "list1" ) { echo "checked=\"checked\"";
														
														//if ( isset( $_REQUEST['list1'] ) && !empty( $_REQUEST['list1'] ) ) { $list1 = $_REQUEST['list1']; }
														echo "<input type=\"checkbox\" name=\"$listid\" value=\"$name\" "; 
														if ( $$listid == $name ) { echo "checked=\"checked\""; }
														echo "/><font size=\"2\" face=\"Arial\"> $name<br /></font>\n";
													}
												}
												echo "<input type=\"hidden\" name=\"listcount\" value=\"$id\" />\n";
												echo "<br />\n";
												function SortByName( $a, $b )
												{
    												return strcasecmp( $a['name'], $b['name'] );
												}
												?>
											</td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24"></td>
										<td width="15" height="24"></td>
										<td height="24"><input type="radio" name="cmd" value="subscribe" <?php if ( $cmd == "" || $cmd == "subscribe" ) { echo "checked=\"checked\""; } ?> /><font size="2" face="Arial"> Subscribe <input type="radio" name="cmd" value="unsubscribe" <?php if ( $cmd == "unsubscribe" ) { echo "checked=\"checked\""; } ?> /> Unsubscribe</font></td>
										<td height="24"></td>
									</tr>
									<tr height="20">
										<td colspan="3" valign="top" height="20"></td>
										<td valign="top" height="20"></td>
									</tr>
									<tr>
										<td width="40%">
											<div align="center"></div>
										</td>
										<td width="15"></td>
										<td>
											<div align="right">
												<font size="-1" face="Verdana"><b><input type="submit" name="submit" value="Submit" /> <input type="reset" value="Clear Form" /></b></font></div>
										</td>
										<td></td>
									</tr>
								</table>
							</form>
						</div>
					</td>
				</tr>
				<tr height="10">
					<td height="10">
						<div align="center">
							<?php

// --- ERROR CHECKING ---

if ( isset( $_REQUEST['submit'] ) ) {
	if ( count( $errors ) > 0) {
		echo "<br />";
		echo "<table width=\"500\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
		echo "<tr bgcolor=\"#ff0000\" height=\"22\">";
		echo "<td height=\"22\">";
		echo "<div align=\"center\">";
		echo "<font color=\"white\" face=\"Verdana, Arial, Helvetica, sans-serif\"><b>Sorry but we can't process your request</b></font></div>";
		echo "</td>";
		echo "</tr>";
		echo "</table>";
		echo "<font size=\"-1\" color=\"red\" face=\"Verdana, Arial, Helvetica, sans-serif\"\>";
		echo "<b/>Please fix the following issues</b/><br />";
		for($i=0; $i<count($errors); $i++){
			echo $errors[$i]."<br />";
		}
	} else if ( count( $successes ) > 0) {
		echo "<font color=\"blue\" face=\"Verdana, Arial, Helvetica, sans-serif\"\>";
		echo "<b/>Your request has been processed successfully:</b/><br />";
		for($i=0; $i<count($successes); $i++){
			echo $successes[$i]."<br />";
		}
	}
}

?></div>
					</td>
				</tr>
				<tr bgcolor="white">
					<td>
						<div align="center">
							<hr />
							<font size="-2" color="#636363" face="Verdana, Arial, Helvetica, sans-serif">Maxprog List Manager v1.0 - <a href="http://www.maxprog.com/">Max Programming, LLC</a> - Copyright (c) 2008 - 2009</font></div>
					</td>
				</tr>
			</table>
			<br />
			<br />
		</div>
	</body>

</html>

I am really at my wits end. I have no idea what I am doing write or wrong. This is the error I am getting......

Sorry but we can't process your request
Please fix the following issues
You have to select a list

Here is the url that was sent after I click submit.

Code:
http://www.toandfrom.ca/mailscript/lm/html/subscribe_auto_multiple.php?email=sales%40danforthvillageauto.com&firstname=Julien&lastname=Jean-Pierre&list1=General+Mailing+list&list2=Toronto+Mailing+List&listcount=2&cmd=subscribe&submit=Submit

Please Help!

Thanks

Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

What is the name of this file? I prefer to look at my original file here.
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

The name of the file I am working on is subscribe_auto_multiple.php



Thanks


Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

In 'PARAMATER CHECKING' add:
Code:
if ( isset( $_REQUEST['Birthdate'] ) && !empty( $_REQUEST['Birthdate'] ) ) { $Birthdate = $_REQUEST['Birthdate']; }
if ( isset( $_REQUEST['City'] ) && !empty( $_REQUEST['City'] ) ) { $City = $_REQUEST['City']; }
In 'PARAMETER CHECKER & ERROR HANDING' replace the URL:
Code:
$url = $lm_path . "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname";
with
Code:
$url = $lm_path . "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname&opt1=$Birthdate&opt2=$City";
Finally in the form add:
Code:
<tr height="24">
	<td width="40%" height="24">
		<div align="right">
		<font size="-1" color="#0059a5" face="Verdana"><b>Birth date</b></font></div>
	</td>
	<td width="15" height="24"></td>
	<td height="24"><input type="text" name="Birthdate" size="30" <?php echo " value=\"$Birthdate\""; ?> /></td>
	<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
</tr>
<tr height="24">
	<td width="40%" height="24">
		<div align="right">
		<font size="-1" color="#0059a5" face="Verdana"><b>City</b></font></div>
	</td>
	<td width="15" height="24"></td>
	<td height="24"><input type="text" name="City" size="30" <?php echo " value=\"$City\""; ?> /></td>
	<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
</tr>
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

I made all the changes and it still gives me the same error. Here is the url and I will add the modify code I am using below.

http://toandfrom.ca/mailscript/lm/html/ ... mit=Submit


Code:
<?php
include( '../lm_strings.php' );
include( '../lm_prefs.php' );
include( '../lm_settings.php' );
include( '../lm_queries.php' );
include( '../lm_functions.php' );

//--SETTINGS--------------------------------------------------------------------

$lm_path = "../lm.php"; // The path of the MLM script

//--DEBUGING--------------------------------------------------------------------

$mlm_debug = False;

if ( $mlm_debug ) {
	error_reporting(E_ALL); 
	ini_set('display_errors','on');
} else {
	error_reporting(E_ALL ^ E_NOTICE); 
	ini_set('display_errors','off');
}

//--PARAMATER CHECKING----------------------------------------------------------

if ( isset( $_REQUEST['cmd'] ) && !empty( $_REQUEST['cmd'] ) ) { $cmd = $_REQUEST['cmd']; }
if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = $_REQUEST['email']; }
if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; }
if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; }
if ( isset( $_REQUEST['Birthdate'] ) && !empty( $_REQUEST['Birthdate'] ) ) { $Birthdate = $_REQUEST['Birthdate']; }
if ( isset( $_REQUEST['City'] ) && !empty( $_REQUEST['City'] ) ) { $City = $_REQUEST['City']; }

for ( $j = 1; $j <= $listcount; $j++ ) {
	$listid = "list$j";	
	if ( isset( $_REQUEST["$listid"] ) && !empty( $_REQUEST["$listid"] ) ) { 
		if ( $list != "" ) { $list .= ";"; }
		$list .= $_REQUEST["$listid"];
	}
}

//-- INTERNAL PARAMETERS -------------------------------------------------------

$script_file = $_SERVER["SCRIPT_NAME"];
$script_path = Explode( '/', $script_file );
$script_name = $script_path[ count( $script_path ) - 1 ];

//-- PARAMETER CHECKER & ERROR HANDING -----------------------------------------

if ( isset( $_REQUEST['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 first name in the first name text box"; $wrong['firstname'] = TRUE; }
	if ( $lastname == "" ) { $errors[] = "Enter your last name in the last name text box"; $wrong['lastname'] = TRUE; }
	
	if ( $list == "" ) { $errors[] = "You have to select a list"; $wrong['list'] = TRUE; }
	
	if ( count( $errors ) == 0 ) {
		$url = $lm_path . "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname&opt1=$Birthdate&opt2=$City";
		header("Location: $url");
	}
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="generator" content="Adobe GoLive" />
		<title>Mailing List Subscription</title>
		<style type=text/css>
			A:link  { color: #396D84; font-weight: normal; text-decoration: underline }
			A {
				CURSOR: hand; TEXT-DECORATION: none
			}
			A:visited  { color: #396D84; font-weight: normal; text-decoration: underline }
			A:active  { color: #86B82D; text-decoration: underline }
			A:hover   { color: #86B82D; font-weight: normal; text-decoration: underline }
			
			input[type="text"], input[type="password"], textarea {font-weight: bold;}
			select:focus, textarea:focus, input:focus {background-color: #ffffee;}
		</style>
	</head>

	<body>
		<div align="center">
			<br />
			<br />
			<table width="500" border="0" cellspacing="2" cellpadding="0">
				<tr bgcolor="#0059a5" height="22">
					<td height="22">
						<div align="center">
							<font color="white" face="Verdana, Arial, Helvetica, sans-serif"><b>Mailing List Subscription</b></font></div>
					</td>
				</tr>
				<tr bgcolor="white" height="16">
					<td height="16"></td>
				</tr>
				<tr>
					<td>
						<div align="center">
							<form id="FormName" action="<?php echo $script_name; ?>" method="get" name="FormName">
								<table width="100%" border="0" cellspacing="2" cellpadding="0">
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your E-mail Address</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="email" size="30" <?php echo " value=\"$email\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your First Name</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="firstname" size="30" <?php echo " value=\"$firstname\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Your Last Name</b></font></div>
										</td>
										<td width="15" height="24"></td>
										<td height="24"><input type="text" name="lastname" size="30" <?php echo " value=\"$lastname\""; ?> /></td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
   <td width="40%" height="24">
      <div align="right">
      <font size="-1" color="#0059a5" face="Verdana"><b>Your Birthdate</b></font></div>
   </td>
   <td width="15" height="24"></td>
   <td height="24"><input type="text" name="Birthdate" size="30" <?php echo " value=\"$Birthdate\""; ?> /></td>
   <td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
</tr>
<tr height="24">
   <td width="40%" height="24">
      <div align="right">
      <font size="-1" color="#0059a5" face="Verdana"><b>Your Home City</b></font></div>
   </td>
   <td width="15" height="24"></td>
   <td height="24"><input type="text" name="City" size="30" <?php echo " value=\"$City\""; ?> /></td>
   <td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
</tr>
									<tr height="24">
										<td valign="top" width="40%" height="24">
											<div align="right">
												<font size="-1" color="#0059a5" face="Verdana"><b>Mailing Lists</b></font></div>
										</td>
										<td width="15" height="24"></td>
											<td height="24">
												<?php
												$pwd = $admin_password;
												$ext_list = ".txt";
												$id = 0;
												$lists = explode( "\n", ShowLists() );
												usort( $lists, "SortByName" );									
												foreach ( $lists as $mylist ) {
													list( $name, $count, $date ) = explode( "\t", $mylist );
													if ( trim( $name <> "" ) ) {
														//echo "<option";
														//if ( $name == $list ) { echo " selected=\"selected\""; }
														//echo " value=\"" . $name . ".php\">" . $name . "</option>\n";
														
														$id++;
														$listid = "list$id";
														//echo "<input type=\"checkbox\" name=\"$listid\" value=\"$name\" ";
														//if ( $$listid == "list1" ) { echo "checked=\"checked\"";
														
														//if ( isset( $_REQUEST['list1'] ) && !empty( $_REQUEST['list1'] ) ) { $list1 = $_REQUEST['list1']; }
														echo "<input type=\"checkbox\" name=\"$listid\" value=\"$name\" "; 
														if ( $$listid == $name ) { echo "checked=\"checked\""; }
														echo "/><font size=\"2\" face=\"Arial\"> $name<br /></font>\n";
													}
												}
												echo "<input type=\"hidden\" name=\"listcount\" value=\"$id\" />\n";
												echo "<br />\n";
												function SortByName( $a, $b )
												{
    												return strcasecmp( $a['name'], $b['name'] );
												}
												?>
											</td>
										<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
									</tr>
									<tr height="24">
										<td width="40%" height="24"></td>
										<td width="15" height="24"></td>
										<td height="24"><input type="radio" name="cmd" value="subscribe" <?php if ( $cmd == "" || $cmd == "subscribe" ) { echo "checked=\"checked\""; } ?> /><font size="2" face="Arial"> Subscribe <input type="radio" name="cmd" value="unsubscribe" <?php if ( $cmd == "unsubscribe" ) { echo "checked=\"checked\""; } ?> /> Unsubscribe</font></td>
										<td height="24"></td>
									</tr>
									<tr height="20">
										<td colspan="3" valign="top" height="20"></td>
										<td valign="top" height="20"></td>
									</tr>
									<tr>
										<td width="40%">
											<div align="center"></div>
										</td>
										<td width="15"></td>
										<td>
											<div align="right">
												<font size="-1" face="Verdana"><b><input type="submit" name="submit" value="Submit" /> <input type="reset" value="Clear Form" /></b></font></div>
										</td>
										<td></td>
									</tr>
								</table>
							</form>
						</div>
					</td>
				</tr>
				<tr height="10">
					<td height="10">
						<div align="center">
							<?php

// --- ERROR CHECKING ---

if ( isset( $_REQUEST['submit'] ) ) {
	if ( count( $errors ) > 0) {
		echo "<br />";
		echo "<table width=\"500\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
		echo "<tr bgcolor=\"#ff0000\" height=\"22\">";
		echo "<td height=\"22\">";
		echo "<div align=\"center\">";
		echo "<font color=\"white\" face=\"Verdana, Arial, Helvetica, sans-serif\"><b>Sorry but we can't process your request</b></font></div>";
		echo "</td>";
		echo "</tr>";
		echo "</table>";
		echo "<font size=\"-1\" color=\"red\" face=\"Verdana, Arial, Helvetica, sans-serif\"\>";
		echo "<b/>Please fix the following issues</b/><br />";
		for($i=0; $i<count($errors); $i++){
			echo $errors[$i]."<br />";
		}
	} else if ( count( $successes ) > 0) {
		echo "<font color=\"blue\" face=\"Verdana, Arial, Helvetica, sans-serif\"\>";
		echo "<b/>Your request has been processed successfully:</b/><br />";
		for($i=0; $i<count($successes); $i++){
			echo $successes[$i]."<br />";
		}
	}
}

?></div>
					</td>
				</tr>
				<tr bgcolor="white">
					<td>
						<div align="center">
							<hr />
							<font size="-2" color="#636363" face="Verdana, Arial, Helvetica, sans-serif">Maxprog List Manager v1.0 - <a href="http://www.maxprog.com/">Max Programming, LLC</a> - Copyright (c) 2008 - 2009</font></div>
					</td>
				</tr>
			</table>
			<br />
			<br />
		</div>
	</body>

</html>


On a side note. Is it possible to make some of the fields not required? I want people to have the option of choosing to not add information in the following fields. Birthdate, Last name and city.

Also what would be the date format. Can someone put July 6th or does it have to be like 01/01/?

Oh and before I forget, I want to be able to use the MLM Pro version. Is this what I have? do I need to download something a different version?


Thanks so much for your help so far.


Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

About lists, have you already created lists in MLM? About the required fields, the new fields you add are not required, just remove the word 'required'. About the date format, I guess you would need to use Javascript for that. This is beyond my scope. You will find more info here. The idea is to add some kind of validation to make sure you will always get the same format. The MLM version that comes with MaxBulk Mailer is the Pro version.
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

Yes these lists have already been created. Don't you remember that this page gets the available list information from the data base. Only lists that are already made will show up in this page.

The MLM I am using I got from your download page and was titled MLM lite. I didn't see anything in the package I got when I bought Maxbulk



Thanks


Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

The Pro version is available here.

Have you change the page location or name?
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

Not that I am aware of, which page location are you talking about? What should it be?


Thanks

Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

I have checked with the URL and I see nothing wrong. For a reason I don't understand, the hidden 'list count' parameter is no longer submitted with the form. Try to take the original file and make the modifications again. You made an error but I don't see where :-/
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

I will do it again, but I had already used an original file to make the changes. I knew there could be mistakes in the old files. I wanted to make sure I started it with a clean file with no mistakes.

Since you know this software inside and out, is there anyway you can write the page for me and I will send you $40 canadian dollars by paypal for your time.

They I see it, we can keep going back and forth wasting my time and yours.. Or I can just pay you a few bucks to quickly make the page for me.


I think the second option is more a of a win win for everyone. Once you have built this page for me, you can use it as an example to show other people how to do the same thing. I can tell your a busy guy, so I think this will also save you time having to explain an re explain a feature that more people who buy this product is gonna want to use.



Thanks


Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

I don't do this kind of jobs but you can ask on this forum. I am sure you will find somebody.
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

stanbusk said:
The 'subscribe_auto_single.php' page has a little error in it, use this version instead:

Do you have an updated version of the subscribe_auto_multiple.php?

It looks like there might be an error in this file. After many attempts to modify the page. I decided to start fresh with a completely new install. I tested the original page unmodified and it still give the same error..

Sorry but we can't process your request
Please fix the following issues
You have to select a list

Can you please check and make sure the original file has no bugs in it before I continue trying to get this to work the way I want it to.


Thanks so much for your help.


Julien
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

Yes it does work for me. Is it possible to get a copy of that file? Cause the copy I have downloaded before doesn't work for some reason.


Thanks

Julien
 

stanbusk

Administrator
Staff member
Re: Problems editing the mulitple subscribe page - Please lo

The copy on our server is the one that comes with MLM Pro. It is available here.
 

julienjp

New Member
Re: Problems editing the mulitple subscribe page - Please lo

I downloaded that file and I still get the error. Here is what was sent when I hit the submit button

Code:
http://64.40.123.105/mailscript/lm/html/subscribe_auto_multiple.php?email=reachjulien%40gmail.com&firstname=Julien&lastname=Jean-Pierre&list2=Ottawa+Mailing+List&list3=Toronto&listcount=3&cmd=subscribe&submit=Submit

All the other pages send a different url when I hit the submit button. Here is what is sent with the other pages.

Code:
http://64.40.123.105/mailscript/lm/lm.php?cmd=subscribe&list=Ottawa%20Mailing%20List.php&[email protected]&firstname=Julien&lastname=JeanPierre

I think this is why I am getting the error that I am getting. Also I found an error in the subscribe_auto_single.php when you submitted your info it added '.php' to the name of the mailing list.



Thanks


Julien
 
Top