CoreyR Posted March 30, 2007 Share Posted March 30, 2007 So, I'm trying to do some marketing research and I am looking to track which pages users go to and where they leave. On every link I have something like this <a href='somepage.php?pageid=about_us?userid=$randuserid and follow the user on the site. How would I generate $randuserid = (Random Number) Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/44997-solved-generate-random-userid/ Share on other sites More sharing options...
Demonic Posted March 30, 2007 Share Posted March 30, 2007 $randomid = rand(1,2999); Link to comment https://forums.phpfreaks.com/topic/44997-solved-generate-random-userid/#findComment-218420 Share on other sites More sharing options...
CoreyR Posted March 30, 2007 Author Share Posted March 30, 2007 Thank you! Link to comment https://forums.phpfreaks.com/topic/44997-solved-generate-random-userid/#findComment-218424 Share on other sites More sharing options...
Trium918 Posted March 30, 2007 Share Posted March 30, 2007 Explain something to me please. What is pageid=about_us?userid=$randuserid and what does it do? Link to comment https://forums.phpfreaks.com/topic/44997-solved-generate-random-userid/#findComment-218428 Share on other sites More sharing options...
Hughesy1986 Posted March 31, 2007 Share Posted March 31, 2007 When people use yourpage?value=this&id=1 This is when you are sending information to your php script, using the $_GET[''] then to retrive that information you would use something like $name = $_GET['name']; Glen Link to comment https://forums.phpfreaks.com/topic/44997-solved-generate-random-userid/#findComment-218459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.