Jump to content

[SOLVED] $_GET function question


sciencebear

Recommended Posts

In my website, I use the $_GET function on the user's profile pages. However, I recently encountered a problem. The page is set up like this:

 

http://domain.com/profile.php?username=user

 

$_GET['username'];

 

This works fine for most usernames, but there is a problem with users who have spaces in their names. This function only gets everything before the first space. How can I use it to get the entire username?

 

Link to comment
https://forums.phpfreaks.com/topic/176676-solved-_get-function-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.