hojoff79
September 16th, 2009, 02:47 AM
I am trying to make a site that will use the extention off the URL to give a page a variable. For example, I want to follow the URL with a 10 digit number, and have that go to a page where the 10 digit number is a variable that the page can look at.
For example, my site is www.mysite.com, and I ahve a page that loads different things based on a 10 digit variable. So i want the option for people to type in www.mysite.com/1234567890 (a 10 digit number) and the site will automatically load the page that uses that 10-digit number as a parameter for loading information.
So right now the page that loads the information is www.mysite.com/classpage.php and I am wondering if there is an automatic way to have the www.mysite.com/1234567890 format to automatically just bring the user to classpage.php with a the 10 digit following number 1234567890 as some sort of variable for that page.
For example, my site is www.mysite.com, and I ahve a page that loads different things based on a 10 digit variable. So i want the option for people to type in www.mysite.com/1234567890 (a 10 digit number) and the site will automatically load the page that uses that 10-digit number as a parameter for loading information.
So right now the page that loads the information is www.mysite.com/classpage.php and I am wondering if there is an automatic way to have the www.mysite.com/1234567890 format to automatically just bring the user to classpage.php with a the 10 digit following number 1234567890 as some sort of variable for that page.