No te preocupes, haber si te entendi, tienes que dirigir a los usuarios a una pagina cualquiera cuando ellos se autentiquen. Si en la tabla de usuarios que tu tienes en mysql tu mismo asignas las direcciones,a tus usuarios por ejemplo en un campo llamado dirpaginas en este campo tu le asignas por ejemplo:
http://www.google.com.co/ si es asi puedes hacer lo siguiente :
1) En tu script que te genero dreamweaver, en esta linea:
if (isset($_POST['user'])) {
$loginUsername=$_POST['user'];
$password=$_POST['pass'];
Agrega esto:
$pagina=$_POST['dirpagina']; Donde $pagina es una variable que le asignaremos el valor del campo dirpagina de la tabla usuarios de mysql donde tu ingresas las direcciones electronicas.
2) en la consulta que hace tu script:
$LoginRS__query=sprintf("SELECT usuario, password FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
Agrega dos cositas una en la consulta y otra una variable.
o sea que quedaria asi:
$LoginRS__query=sprintf("SELECT usuario, password,
dirpagina FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"),
GetSQLValueString($pagina, "text"));
3) luego en tu script despues de esta linea:
$LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());
Agrega:
if($row=mysql_fetch_array($LoginRS)){
$pagina=$row["dirpagina"];
}
Para que guarde en una variable llamada $pagina el valor de la consulta que hiciste que esta en la variable $LoginRS,
que es la que me trae a los usurios contraseñas y paginas, y de esta consulta guardamos lo que hay en el campo dirpagina de mysql en la variable $pagina.
4) En esta linea:
header("Location: " . $MM_redirectLoginSuccess );
Cambiala por:
header("Location: " . $pagina );
5) y se me olvidaba

en la parte de arriba en la linea donde tu llamas las paginas:
$MM_redirectLoginSuccess = "/acceso.php";
coloca esto:
$pagina = "$pagina";
TODO EL SCRIPT QUEDARIA ASI:
<?php include('Connections/dcool.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_dcool, $dcool);
$query_dcool2 = "SELECT * FROM usuarios";
$dcool2 = mysql_query($query_dcool2, $dcool) or die(mysql_error());
$row_dcool2 = mysql_fetch_assoc($dcool2);
$totalRows_dcool2 = mysql_num_rows($dcool2);
?><?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['user'])) {
$loginUsername=$_POST['user'];
$password=$_POST['pass'];
$pagina=$_POST['dirpagina'];
$pagina = "$pagina";
$MM_redirectLoginSuccess = "/acceso.php";
$MM_redirectLoginFailed = "/negado.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_dcool, $dcool);
$LoginRS__query=sprintf("SELECT usuario, password,dirpagina FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"), GetSQLValueString($pagina, "text"));
$LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());
if($row=mysql_fetch_array($LoginRS)){
$pagina=$row["dirpagina"];
}
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $pagina );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?><!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" />
<title>Documento sin título</title>
</head>
<body>
<p>Bienvenido</p>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
<label><br />
</label>
<table border="1">
<tr>
<td width="90">user</td>
<td width="111">pass</td>
</tr>
<tr>
<td><p>
<label></label>
<label>
<input type="text" name="user" id="user" />
</label>
</p></td>
<td><p>
<label>
<input type="text" name="pass" id="pass" />
</label>
</p></td>
</tr>
</table>
<input type="submit" name="Enviar" id="Enviar" value="Enviar" />
</form>
</body>
</html>
<?php
mysql_free_result($dcool2);
?>
Y listo
Lo que hemos hecho es pasar en una consulta con un campo en mysql que tiene una direccion que asignamos a nuestro usuario.Por medio de una variable $pagina cuando se autentifique el usuario.
Comentame como te fue
El servir nos hace grandes