CodeIgniter Forums
# as a segment? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: # as a segment? (/showthread.php?tid=34944)



# as a segment? - El Forum - 10-14-2010

[eluser]Unknown[/eluser]
Hi,

Is it possible to use a # as a segment?

For instance if you use at the url:

www.example.com/profile/#/userid

I'd like to still pull the user id as a segment a query a database dependant on it's value if a user has no javascript and pull the data via ajax if they do.

Displaying the segment count only results in 1 however. Sad


# as a segment? - El Forum - 10-14-2010

[eluser]WanWizard[/eluser]
No. It has only relevance client-side, where it is used to indicate an anchor in the page. If you sent it to the server in a request, the server will strip it from the URL.