The question is how do I alter my database so that each username when submitted will go to their own page.
ie. if someone types in login:fire password:fox it will go to www.firefox.com
and if someone types in login:internet password:explorer it will go to www.yousuck.com
I am assuming in need to make another column in the table, but what do I do with it?
You'll have to do some custom programming. First add another field to your database and call it userURL.
On your login page where you redirect user after succesfull login just plugin that field!
I created a new column in my database which contains specific URLs. And then in dreamweaver, where I'm asked to put in my redirectLoginSuccess I put in my column title. But then when I login, the brower tries to find that title, not the entry within the column.
I tried creating a recordset (no idea what that is), but it did'nt work properly, and just gave me an error when trying to open up the apge.
When your form checks the login credentials it queries the db and returns user info, just include that new field into the query and then you can pass it along. Send you form source code!
Here is the code I'm using...I realize now that I have to "define" $url. I'm just not to sure how to do that. (I have attempted to, as can be seen below) Thanks for your help!
<?php require_once('Connections/Login.php'); ?><?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'];
}
Bookmarks