close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Urgent - Creating a unique URL for my Users using Data Assist

Thread began 8/30/2012 4:53 am by hbibizadeh396670 | Last modified 8/30/2012 8:16 am by Jason Byrnes | 607 views | 1 replies |

hbibizadeh396670

Urgent - Creating a unique URL for my Users using Data Assist

Hi,

I used data assist to make a social networking website.

At the moment, I filter a URL Parameter on a user profile page to display unique information about my users.

As a result, currently user profile’s web address appears as follows

UserProfile.php?UserID=11

What I want is: ashley

Or something close to it, is this possible without changing to much of my code.

I basically want my users to have their own URL.

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

URL Manipulation like this is not done through PHP code.

It is done using the Mod Rewrite apache module using an .htaccess file.

there are many resources through google that talk about the mod rewrite module, here is one that i found through a quick google search:

guide-url-rewriting/


In reality, though, you shouldn't be using a URL variable to pass the users ID.

When the user logs in, the ID is stored in a session variable, you should be using the session for filtering the recordset. Using a url variable means that ashley could log in, then change the URL variable to johns id

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...