Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Taffydog #1
Using a from field to create URL
I am using PHP and MySQL database. I have created a login that validates
username and password against the database. I want to direct the user to a
certain URL based on their username. Is it possible to:-
Taffydog Guest
-
Forms: Text field - auto fill another field?
Someone PLEASE help me... how do i structure a form so that when text is entered into one field, it auto-fills other fields on the form that are... -
Acrobat Stalls When I Try To Create A Fillable Field
I just discovered that neither my 7.0.8 Acrobat Professional nor my 6.0.2 will allow the creation of fillable fields. I've tried different PDFs but... -
Create a variable using form field
Hello everyone, I am very new to ColdFusion and I am not sure if this is the right place to post this question. I am in the process of buidling... -
Defined text field in form -> subject field in e-mail
Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to... -
Taffydog #2
Using a from field to create URL
I am using PHP and MySQL database. I have created a login that validates
username and password against the database. I want to direct the user to a
certain URL based on their username. Is it possible to:-
1. Use the username field of the login form or database to finish the URL ie
username is john21 finished urk woudl be [url]http://www.homepage/admin/john21.php[/url]
2. Alternatively could I create a new field in the database with the complete
URL and use that to direct the user
Failing that how can I direct a specific user to a specific page
This is the login verification code
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');
}
if (isset($_POST['Username'])) {
$loginUsername=$_POST['Username'];
$password=$_POST['Password'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "admin/SPECIFIC URL.php";
$MM_redirectLoginFailed = "loginfailed.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_conTest, $conTest);
Help please
Taffydog Guest
-
David Powers #3
Re: Using a from field to create URL
Taffydog wrote:
Change the above line like this:> $MM_redirectLoginSuccess = "admin/SPECIFIC URL.php";
$MM_redirectLoginSuccess = "admin/{$loginUsername}.php";
By the way, I see you're using the Dreamweaver User Authentication
server behavior, which breaks on most recent versions of PHP. You may be
interested in reading my analysis and solution here:
[url]http://friendsofed.infopop.net/2/OpenTopic?a=tpc&s=989094322&f=8033053165&m=3241024 21&r=324102421#324102421[/url]
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
Taffydog #4
Re: Using a from field to create URL
Cheers,
I do have code for user authentification but as this my first attempt at a
dynamic site I thought I would use the built in stuff. Will check out your
link when my brain works again.
Brian
Taffydog Guest



Reply With Quote

