Jump to content

How can I pass this URL parameter...


Recommended Posts

Hello everybody !

 

I'm working with Dreamweaver MX and mysql... I have a simple login form and I just want to pass an URL parameter when login has been successful ...

 

in the lines code it is this line which works perfect :

 

-- $MM_redirectLoginSuccess = "modify_home_form.php";

 

if I pas a value in URL parameters like this :

 

-- $MM_redirectLoginSuccess = "modify_home_form.php?recordId=7";

(it works perfect also)

 

Bui I just want to pass the value of the "user_name" , it is suposed to be like this:

 

$MM_redirectLoginSuccess = "modify_home_form.php?recordId=<?php echo $row_Recordset_users['user_name']; ?>

 

 

HOW CAN I PASS AN URL PARAMETER WHIT THIS LINK WHEN LOGIN IS SUCCESSFUL ???

 

how can I pas the username value to the next page after loggin in ???

 

 

any help will be so good.

 

Gracias anticipadamente !

 

Fernando.

Link to comment
Share on other sites

  • 2 months later...

I would have thought that it should be...

 

$MM_redirectLoginSuccess = "modify_home_form.php?recordId=<?php echo $row_Recordset_users['user_id']; ?> //change user_id to whatever your id column is called.

 

NOT:

$MM_redirectLoginSuccess = "modify_home_form.php?recordId=<?php echo $row_Recordset_users['user_name']; ?>

 

if this doesnt work, paste in your SQL connection / query / recordsets and i'll take a look and sort some code out for you.

 

 

Chris

 

 

Hello everybody !

 

I'm working with Dreamweaver MX and mysql... I have a simple login form and I just want to pass an URL parameter when login has been successful ...

 

in the lines code it is this line which works perfect :

 

-- $MM_redirectLoginSuccess = "modify_home_form.php";

 

if I pas a value in URL parameters like this :

 

-- $MM_redirectLoginSuccess = "modify_home_form.php?recordId=7";

(it works perfect also)

 

Bui I just want to pass the value of the "user_name" , it is suposed to be like this:

 

$MM_redirectLoginSuccess = "modify_home_form.php?recordId=<?php echo $row_Recordset_users['user_name']; ?>

HOW CAN I PASS AN URL PARAMETER WHIT THIS LINK WHEN LOGIN IS SUCCESSFUL ???

 

how can I pas the username value to the next page after loggin in ???

any help will be so good.

 

Gracias anticipadamente !

 

Fernando.

270011[/snapback]

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.