Dynamic pages

I’m new to php and teaching myself.
Taught myself html, cad/cam, cnc programming, ect. So I can do things once I get the hang of it.
I’ve been studying php/ mysql for days and kinda get the hang of it, anyway heres my question:

Web sites like craigslist and ebay seem to create a new web page with a submit form.
I know how to write php code to submit text onto an existing page in my database. But how is a new page created when a person inputs and submits dynamically?

For example: The Denver craigslist page for bicycles for sale is addressed (http://denver.craigslist.org/bik/),
click on a post and the address is something like (http://denver.craigslist.org/bik/2194238012.html).
Looks to me like a user created html web page.

How is this done?

I’m sure this is basic stuff. Just cant find it. I’ve been looking around for a long time and can’t find any info.

Btw, I don’t like templates and programs that do this stuff for you. I’m looking for code, etc.

Thanks for helping out a struggling noob! Sorry I don’t have the lingo down (very green here)

http://denver.craigslist.org/bik/2194238012.html
in this url, 2194238012.html is not a user created page. infact that page doesnt really exist physically

to understand, that real url looks like

http://denver.craigslist.org/bik/index.php?id=2194238012

(where 2194238012 is the id of the post. )

the actual url is rewritten as "http://denver.craigslist.org/bik/2194238012.html "
to ensure security and seo friendliness.

it is a very simple setting placed in .htaccess or web.config file of the website. this setting rewrites all urls into the desired urls based on our requirements.

Sponsor our Newsletter | Privacy Policy | Terms of Service